I am struglins to find out the best way to APPEND values INDEXED by KEY in a 3 dimensional array.
I have previously the following array:
#part 1 of 2
Code: Select all
Array
(
[0] => Array
(
[0] => Array
(
[model 1] => 2006-01 => 31.8
)
)
[1] => Array
(
[0] => Array
(
[model 1] => 2006-02 => 134.56
)
)
[2] => Array
(
[0] => Array
(
[model 2] => 2006-02 => 746.85
)
)All I want is - use this first ARRAY - and compare to the second (not displayed here) and then by KEY reindex it (the above one)
For example:
Code: Select all
[0] => Array
(
[0] => Array
(
[model 1] => 2006-01 => 31.8
)
[1] => Array
(
[model 2] => 2006-01 => 55.8
)
)
(*) Here when compared to the other ARRAY - this array was REINDEXED having another KEY to the same ARRAY LEVEL ...
I tried ARRAY_MERGE and stuffs like that - but i need could insert in the KEY index I wanted...I hope someone could help me !!!
Thank u very much for your attention.
Poeta_eletrico