- array_map: documentation ( source)
- print_r: documentation ( source)
<?php
//Enter your code here, enjoy!
$a = [
"test1" => [
'value' => 1,
"date"=> '2019-01-01'
],
"test2" => [
'value' => 2,
"date"=> '2019-01-01'
]
];
$b = [
"test1" => [
'value' => 3,
"date"=> '2018-01-01'
],
"test2" => [
'value' => 4,
"date"=> '2018-01-01'
]
];
$res = array_map(null, $a, $b);
print_r($res);