array length - loop up vote 1 down vote favorite I have these values: $x[0][0] = 1; $x[0][1] = 2; ...
stackoverflow.com