note 98291 deleted from function.count by googleguy
| From: | googleguy@php.net | Date: | Tue, 18 Sep 2012 18:52:58 +0000 |
| Subject: | note 98291 deleted from function.count by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190870@lists.php.net to get a copy of this message | ||
Note Submitter: marc at gutt dot it
----
There was a change in a PHP5 version. Now an empty string returns 1:
<?php
echo count(''); // returns 1
echo count(array()); // returns 0
?>
This wasn't in PHP4 and some older PHP5 versions.