note 19882 added to function.count
| From: | charles_killian at yahoo dot com | Date: | Thu, 14 Mar 2002 01:45:36 +0000 |
| Subject: | note 19882 added to function.count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27770@lists.php.net to get a copy of this message | ||
Be careful using the function array_dimen_cnt() above because it will return incorrect results if
the array mixes arrays and values at the same level.
$multi = array("1"=>array(5, "2"=>array(3, 4)));
Passing the above array returns an incorrect dimensional count of 2 because the first element in the
second array in not an array.
--
http://www.php.net/manual/en/function.count.php
http://master.php.net/manage/user-notes.php?action=edit+19882
http://master.php.net/manage/user-notes.php?action=delete+19882
http://master.php.net/manage/user-notes.php?action=reject+19882