note 111401 rejected from function.count by danbrown
| From: | danbrown@php.net | Date: | Mon, 04 Mar 2013 18:09:42 +0000 |
| Subject: | note 111401 rejected from function.count by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193890@lists.php.net to get a copy of this message | ||
Note Submitter: azowar dot jeddah at gmail dot com
----
//I cannot understand the following.
$dummy = array();
print count($dummy);
// prints 0 which is supposed output
//but when i declare an array to be multi dimensional
// then
$dummy = array(array());
print count($dummy);
// it prints 1 - any help will be appreciated.