note 7020 deleted from function.count by philip
| From: | philip@php.net | Date: | Fri, 13 Dec 2002 00:22:50 +0000 |
| Subject: | note 7020 deleted from function.count by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-40831@lists.php.net to get a copy of this message | ||
I've experimented with this idea of counting 2+D arrays, I think it works something like this:
count($my2darray) returns the number of non-null arrays, treating $my2darray as an array of arrays.
so if you wanted to count the 3rd array,
count($my2darray[2]) would return the same as $temp1darray=$my2darray[2];
count($temp1darray);
I'm new to php, but this is how it appears to work in my code :)