I have array 1:
Array
(
[0] => Array
(
[recomendation_id] => 3588
[employee_id] => 90141063
Yes, it is possible. Let your first array is $arr1
and second array is $arr2
.
Just assign a new field to your first array, Your first array will be updated with the second array's key, value pair
.
$arr1[0]['valuator1'] = $arr2[0]['valuator1'];
print_r($arr1);
Result:
Array
(
[0] => Array
(
[recomendation_id] => 3588
[employee_id] => 90141063
[attendance_type_id] => 2
[start_dtm] => 2016-05-17 10:32:00
[end_dtm] =>
[request_message] => test notif
[recomendation_status_id] => 1
[last_update_dtm] => 2016-05-17 10:32:43
[employee_name] => Nike Yulistia Angreni
[attd_type_name] => Permittance
[status_name] => Request
[valuator1] => Wulan Lastia Permana
)
)