I have 2 nested arrays like this
array:1 [
0 => array:1 [
"id" => 6
],
1 => array:1 [
"id" => 4
]
]
array:1 [
0 => array:1 [
"id" => 509
],
1 => array:1 [
"id" => 256
]
]
I'm trying to merge this to arrays to have something like this
array:1 [
0 => array:1 [
"ssh_id" => 6
"d_id" => 509
],
1 => array:1 [
"ssh_id" => 4
"d_id" => 256
]
]
I tried array_merge functions from PHP, but I don't get the result I want. Is this possible?