I am using codeigniter php programming and I have 3 arrays like
array(1) {
[1506546000]=>
object(stdClass)#34 (1) {
["purchases"]=>int(120)
}
}
array(1) {
[1506546000]=>
object(stdClass)#32 (1) {
["exchange_items"]=>int(10)
}
}
array(3) {
[1506546000]=>
object(stdClass)#40 (1) {
["production_system"]=>int(16050)
}
[1506373200]=>
object(stdClass)#33 (1) {
["production_system"]=>int(2250)
}
[1506805200]=>
object(stdClass)#39 (1) {
["production_system"]=>int(150)
}
}
I need to merge them in one array with the key to be like this
array(1) {
[1506546000]=>
["purchases"]=>int(120)
["exchange_items"]=>int(10)
["production_system"]=>int(16050)
}
array(1) {
[1506373200]=>
["purchases"]=>null
["exchange_items"]=>null
["production_system"]=>int(2250)
}
array(1) {
[1506373200]=>
["purchases"]=>null
["exchange_items"]=>null
["production_system"]=>int(150)
}
I used array_merge_recursive() but it doesn't give me exactly what I need,
So any help to do that?