Bug #699: explode should not return a 1-element array for an empty string
| From: | daniele at orlandi dot com | Date: | Thu, 27 Aug 1998 15:58:55 +0000 |
| Subject: | Bug #699: explode should not return a 1-element array for an empty string | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-608@lists.php.net to get a copy of this message | ||
From: daniele@orlandi.com
Operating system: RedHat Linux 5.1
PHP version: 3.0.3
PHP Bug Type: Misbehaving function
Bug description:
$a=explode("",":");
echo count($a);
Prints 1
IMHO, an empty string should explode to a 0-elements array.
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net