Multidimensional Array Question
Posted: Fri Apr 22, 2005 10:56 pm
I have an array:
I know how to get the size of a regular array, but how do I get
the size of the sub array? i.e: how do I get that the sub array
of $var[test] is equal to 3 and that the size of the sub array
$var[test1] is equal to 2?
Thanks
Code: Select all
$var = array('test' =>
array('sub1', 'sub2', 'sub3'),
'test1' =>
array('sub1', 'sub2'),
'test2');the size of the sub array? i.e: how do I get that the sub array
of $var[test] is equal to 3 and that the size of the sub array
$var[test1] is equal to 2?
Thanks