it should.

if(is_array($x[0]))
        $count = count($x[0]);
else
        $count = 'not an array....';

Sincerely, 

 Maxim Maletsky
 Founder, Chief Developer
 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com



-----Original Message-----
From: Chris Anderson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 9:31 AM
To: PHP
Subject: [PHP] Sizeof a multi-dimensional array??


Alright, count($x) would give me the number of array elements in $x. But how
can I get the count of a multi-dimensional array? Count($x[0]) doesn't seem
to work. Thanks in advance

Chris Anderson   aka "Null"    
--------------------------------------------
PHP Developer / Nulltech
PHP-GTK Tester / gtk.php.net
STA Administrator / www.stronger.org
DOD Co-Owner / www.dayofdefeat.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to