What\'s the easiest way to create a 2d array. I was hoping to be able to do something similar to this:
declare int d[0..m, 0..n]
Or for larger arrays, all with the same value:
$m_by_n_array = array_fill(0, $n, array_fill(0, $m, $value);
will create an $m by $n array with everything set to $value.
$m
$n
$value
And I like this way:
$cars = array ( array("Volvo",22), array("BMW",15), array("Saab",5), array("Land Rover",17) );