"John Pastrovick" <pa*********@hotmail.com> wrote in message
news:a2*************************@posting.google.co m...
Sort of sizeof but applied to a particular array dimension.
Similar to ASP ubound(array,dimension)
It's hard to apply the concept to multidimensional PHP arrays, since they're
stored as tree structures. Take the following for example:
$a[0][3][5][2] = "Hello";
$a[1][3][8][8] = "World";
At the second dimension, you actually have 2 arrays, one belonging to $a[0]
and another to $a[1], both with 3 as the index. So should the result be 2 or
1? And of course, you can have gaps in your indices. At the third dimension,
there're only two elements, with indices 5 and 8.