Here's a piece of PHP code that should declare 2D Array.
$array = array(
range(1, 4),
range(1, 4)
);
print_r($array);
But the output is:
Array ( [0] => Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) [1] => Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) )
So what am I doing wrong? How can I declare\display as a matrix 2d array?