I have this array:
$number= array(
array([0]=>2,[1]=>2)
array([0]=>2,[1]=>2,[2]=>2,[3]=>2)
array([0]=>2,[1]=>2,[2]=>2)
array([0]=>2,[1]=>2)
)
I want maximum index in this array. for this array is 4.
This code tested and works for your array. Of course array_map with count func is best solution for dimention 1 max count