* Thus wrote Anguz ([EMAIL PROTECTED]):
> Thanks! I was just reading that function in the manual when I got your
> reply. I tested it but I still have a couple of problems with it.
>
> print_r(preg_split('(\s+)', " word1 word2 word3.", -1,
> PREG_SPLIT_DELIM_CAPTURE));
You forgot the pattern deliminator:
print_r(preg_split('/(\s+)/', " word1 word2 word3.", -1, PREG_SPLIT_DELIM_CAPTURE));
>
> Kemper, Helmut wrote:
> > Hi,
> >
> > See preg_explite and use "/(\s+)/" for explode string into array.
> >
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php