note 19481 deleted from function.split by didou
| From: | didou@php.net | Date: | Sat, 16 Aug 2003 16:26:48 +0000 |
| Subject: | note 19481 deleted from function.split by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54417@lists.php.net to get a copy of this message | ||
Note Submitter: shai@comfy.co.il
----
Doing a split on an empty string results in an array containing one empty string element. This is
correct but counter intuitive (at lease for me it was).
Example:
$split_string = split(:, );
print (count($split_string));
will print:
1