note 111401 added to function.count

From: Date: Sat, 16 Feb 2013 09:47:34 +0000
Subject: note 111401 added to function.count
Groups: php.notes 
Request: Send a blank email to php-notes+get-193653@lists.php.net to get a copy of this message
//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. ---- Server IP: 69.147.83.199 Probable Submitter: 188.54.222.218 ---- Manual Page -- http://php.net/manual/en/function.count.php Edit -- https://master.php.net/note/edit/111401 Del: integrated -- https://master.php.net/note/delete/111401/integrated Del: useless -- https://master.php.net/note/delete/111401/useless Del: bad code -- https://master.php.net/note/delete/111401/bad+code Del: spam -- https://master.php.net/note/delete/111401/spam Del: non-english -- https://master.php.net/note/delete/111401/non-english Del: in docs -- https://master.php.net/note/delete/111401/in+docs Del: other reasons-- https://master.php.net/note/delete/111401 Reject -- https://master.php.net/note/reject/111401 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193653) next »