I have a two dimensional array with unknown number of elements.
$two_darray[row][column]; //there will be an unknown integer values instead of row and column
If you need to know an actual number, then you can use the sizeof() or count() functions to determine the size of each array element.
sizeof()
count()
$rows = count($two_darray) // This will get you the number of rows foreach ($two_darray as $row => $column) { $cols = count($row); }