4
Scenario (example):
I have 2 Arrays
, X and Y (dynamically created, individual):
$arX = Array('AAA' => 173.696, 'BBB' => 72.436, 'CCC' => 142.692);
$arY = Array('AAA' => 127, 'DDD' => 72.333);
Goal:
What I’d like is unite them by the key, but separate the values.
Example of the expected outcome:
Array
(
[AAA] => Array
(
[X] => 173.696,
[Y] => 127
)
[BBB] => Array
(
[X] => 72.436
)
[CCC] => Array
(
[X] => 142.692
)
[DDD] => Array
(
[Y] => 72.333
)
)
Doubts:
- There is a native function for this?
- How could I get the result?
Question of the hour +1. Great challenge :p
– Wallace Maxters
Man, it’s okay to think about the rush I’m in. Then I’ll give you a better answer.
– Wallace Maxters