note 31460 modified in function.split by alindeman
| From: | alindeman@php.net | Date: | Tue, 22 Apr 2003 21:34:48 +0000 |
| Subject: | note 31460 modified in function.split by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-46954@lists.php.net to get a copy of this message | ||
[Ed Note: This is because split() uses a regular expression for the first argument. If you
don't need a regular expression, use explode() --alindeman at php.net]
If you want to delimit with a '|', don't forget to escape it too!
$blah = split("\|", "You|Got|It");
--was--
If you want to delimit with a '|', don't forget to escape it too!
$blah = split("\|", "You|Got|It");
http://www.php.net/manual/en/function.split.php