note 111500 deleted from function.count by danbrown
| From: | danbrown@php.net | Date: | Mon, 04 Mar 2013 17:49:45 +0000 |
| Subject: | note 111500 deleted from function.count by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193829@lists.php.net to get a copy of this message | ||
Note Submitter: Bartosz Tomczak
----
<?php
count(array()); // returns 0, array is empty
count(array(array())); // returns 1, because array passed to count() function contains one item
(empty array).