Hi all,
I'm trying to explode block of text to run some function on it, but I have to explode it by ' ' (space) OR by '<br>' (line break)
I guess there is no way to specify OR in the explode function itself, so it would have to be multystep process.
Please help,
Thanks
Example of text to be exploded by ' ' and by '<br>':
Hello world
how are you
Should return array['Hello','world','how','are','you']
Thanks
Explode function question
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Explode function question
Show us your code. There are several functions that split strings.
(#10850)
Re: Explode function question
Thanks for the reply, I actually figured it out, I replaced "<br />" with " <br /> " and then ran explode for " "...
Thanks for reply though.
Thanks for reply though.