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

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -