Re: Count of multi-dimensional array

From: Date: Sat, 17 Feb 2001 17:52:19 +0000
Subject: Re: Count of multi-dimensional array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40368@lists.php.net to get a copy of this message
count($myarray) will give you 3 On Sat, 17 Feb 2001, bill wrote: > How can i get the count of a multi-dimensional array? > > if I have > > $myarray[0][chicken] > $myarray[0][fish] > $myarray[0][meat] > $myarray[1][fries] > $myarray[1][chips] > $myarray[2][coke] > $myarray[2][pepsi] > $myarray[2][rootbeer] > > How can I get the number of first elements (which would be 3 above)? > > thanks, > > bill > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#40368) next »