php - How to, Take a text file and wrap every word with a tag <v> </v> -


I want to take plain text and wrap each word with one element

do this < / P>

  & lt; V & gt; Archer & lt; / V & gt; & Lt; V & gt; Aŭtomobilis & lt; / V & gt; & Lt; V & gt; Front & lt; / V & gt; & Lt; V & gt; D & lt; / V & gt; & Lt; V & gt; Antaŭkristnaska & lt; / V & gt; & Lt; V & gt; Festo & lt; / V & gt; & Lt; V & gt; N & lt; / V & gt; & Lt; V & gt; Suda & lt; / V & gt; & Lt; V & gt; Apudurbo & lt; / V & gt; & Lt; V & gt; Malgraŭ & lt; / V & gt;  

What is the best way to thank it in php

  $ tok = strtok ($ string, "\ n \ t"); While ($ tok! == incorrect) {resonant "<"> $ tok  "; $ Tok = strtok ("\ n \ t"); }  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -