Try this :
<?php
$a[0][0] = 'a';
$a[0][1] = 'b';
$a[0][2] = 'c';
$a[1][0] = 'aa';
print '<br> $a : ' . sizeof($a); // 2
print '<br> $a[0] : ' . sizeof($a[0]); // 3
print '<br> $a[1] : ' . sizeof($a[1]); // 1
?>
Regards,
Philip Olson
http://www.cornado.com/
On Thu, 15 Feb 2001, Fabian Fabela wrote:
> Hello,
>
> I have the array $array[x][y];
>
> if I want to know the x I use count($array);
>
> Now, How can I count the y??
>
> Thank you.
>
> Fabian Fabela
> [EMAIL PROTECTED]
> www.vacagorda.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]