Split that keeps delimiter
| From: | Simon Dedeyne | Date: | Fri, 03 Jan 2003 10:03:05 +0000 |
| Subject: | Split that keeps delimiter | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130075@lists.php.net to get a copy of this message | ||
Is there a way to split a string without using something like this:
$keywords=preg_split("/[?!.]/", "this ! Is a possible
test",PREG_SPLIT_DELIM_CAPTURE);
My php version doesn't seem to support the flags, and I want to know
which delimiter the string was splitted by.
Kind regards,
Simon De Deyne