RE: [PHP] Divide into words
| From: | Marco Tabini | Date: | Mon, 16 Dec 2002 17:36:47 +0000 |
| Subject: | RE: [PHP] Divide into words | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128434@lists.php.net to get a copy of this message | ||
John,
I'm not sure this will work if there is more than one space between
words.
Also, my previous example won't work if there are duplicate words
(although it's easy to make an array out of each word and solve the
problem), nor if the words are delimited by any character other than
spaces, in which case regex are probably our best bet.
Cheers,
Marco
--
------------
php|architect - The magazine for PHP Professionals
The monthly worldwide magazine dedicated to PHP programmers
Come visit us at http://www.phparch.com!