note 4568 modified in split by ronabop
| From: | ronabop@php.net | Date: | Wed, 29 Nov 2000 05:56:14 +0000 |
| Subject: | note 4568 modified in split by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8245@lists.php.net to get a copy of this message | ||
Here's a little unexpected gem.
<?php
$x = split(":","");
print "There are " . count($x) . " items";
?>
Suprisingly enough (or maybe not), this prints:
There are 1 items
I would expect this to be 0 since the string is empty.
http://www.php.net/manual/function.split.php