> 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?? for($x = 0; $x <= count($array); $x++) { echo "Number of elements at $x: " . count($array[$x]) . "<br>"; } Thats assumeing that y is an array... - James -- 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]
- [PHP] Count columns in array Fabian Fabela
- Re: [PHP] Count columns in array James Atkinson
- Re: [PHP] Count columns in array Philip Olson
- Re: [PHP] Count columns in array Mukul Sabharwal