Explode function question
Posted: Sun Apr 06, 2008 11:30 pm
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
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