Counts the dimensions of an array. If $all is set to false (which is the default) it will
only consider the dimension of the first element in the array.
public static countDim ( array $array, boolean $all = false, integer $count ) : integer | ||
$array | array | Array to count dimensions on |
$all | boolean | Set to true to count the dimension considering all elements in array |
$count | integer | Start the dimension count at this number |
return | integer | The number of dimensions in $array |