I know that arrays are created dynamically, and creating them ahead of time isn’t really necessary, but how would one do that with a 2D array? The same way?
(for$j)
{
for($i)
{
$array[j][i] = "data";
}
}
Something like that? Obviously real for loops, of course.
At its absolute simplest, a 2D dimensional array can be created as:
Or as of PHP 5.4 you can also use: