I have the following problem. There are some php lines.
In the var_dump of $testArrayA, the "def" entry with test2 is NOT there because it was added
after $testArrayB was added to $testArrayA.
It seems to me that in my case, that $testArrayB is not stored by reference in $testArrayA. How can I store it per reference, what do I have to make to have "def" entry in the var_dump?
Thanks alot in advance
$testArrayA = [];
$testArrayB = [];
$testArrayB["ghi"] = "test1";
$testArrayA["abc"] = $testArrayB;
$testArrayB["def"] = "test2";
The var_dump:
array(1) {
["abc"]=>
array(1) {
["ghi"]=>
string(5) "test1"
}
}