I need to merge 3 dimentional array with php and need result. Tell me how to achieve this. Below is my two array output. Is there any inbuilt function available for this ?
Array1
Array
(
[4af2986d-92d6-f343-4c55-5da954718c48] => Array
(
[2020-01-10] => Array
(
[10] => Array
(
[user_name] => dreamertechs
[Call_Answered] => 0
[Call_Dropes] => 1
[call_duration_seconds] => 0
)
[11] => Array
(
[user_name] => dreamertechs
[Call_Answered] => 2
[Call_Dropes] => 1
[call_duration_seconds] => 91
)
)
)
)
Array2
Array
(
[4af2986d-92d6-f343-4c55-5da954718c48] => Array
(
[2020-01-10] => Array
(
[10] => Array
(
[user_name] => dreamertechs
[break_duration] => 19
)
[16] => Array
(
[user_name] => dreamertechs
[break_duration] => 1
)
)
)
)
Result_array
Array
(
[4af2986d-92d6-f343-4c55-5da954718c48] => Array
(
[2020-01-10] => Array
(
[10] => Array
(
[user_name] => dreamertechs
[Call_Answered] => 0
[Call_Dropes] => 1
[call_duration_seconds] => 0
[break_duration] => 19
)
[11] => Array
(
[user_name] => dreamertechs
[Call_Answered] => 2
[Call_Dropes] => 1
[call_duration_seconds] => 91
)
[16] => Array
(
[user_name] => dreamertechs
[break_duration] => 1
)
)
)
)
I have used beow function but not get the aspected result.
$array = array_unique (array_merge ($call_data, $break_data));