note 59358 deleted from function.preg-split by danbrown
| From: | danbrown@php.net | Date: | Wed, 27 May 2009 13:50:05 +0000 |
| Subject: | note 59358 deleted from function.preg-split by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156069@lists.php.net to get a copy of this message | ||
Note Submitter: superzouz at hotmail dot com
----
Be advised
$arr = preg_split("/x/", "x" );
print_r($arr);
will output:
Array
(
[0] =>
[1] =>
)
That is it will catch the 2 empty string on each side of the delimiter.