/*
I am trying to create a multidimensional, associate array that I plan to use later in my code. I am a newbie but I know enough to be dangerous.
Bellow is code that creates the array. The plan is that eventually this array will be created with a loop. My question is at the bottom.
*/
$test["1234567890"] = array("1" => "A");
$test["0987654321"] = array("1" => "B");
$test["0987654321"] = array("2" => "F");
foreach($test as $key0 => $value0){
echo('<br />'.$key0);
foreach($value0 as $key1 => $value1){
echo('<br />--'.$key1.'<br />----'.$value1);
}
}
/* This is the output
1234567890
--1
----A
0987654321
--2
----F
WTF.
Why is there no Array 1 inside with a value of B inside of Array 0987654321
*/