Little Array Correction Required . Please Correct the following code without using loop
<?php
$arr1 = array(
array('to' => '923336088811', 'country' => 'Pakistan' , 'operator' => 'Ufone (Pak Telecom)' , 'network_charges' => '0.5' , 'server' => '11' , 'methode' => 'JSON' , 'our_sms_id' => '235171135665' , 'our_sms_status_code' => '1' , 'action' => 'waiting' , 'message_status' => 'Pending' ),
array('to' => '923008090100', 'country' => 'Pakistan' , 'operator' => 'Ufone (Pak Telecom)' , 'network_charges' => '0.5' , 'server' => '11' , 'methode' => 'JSON' , 'our_sms_id' => '235171135665' , 'our_sms_status_code' => '1' , 'action' => 'waiting' , 'message_status' => 'Pending' ),
array('to' => '123456789888', 'country' => 'Pakistan' , 'operator' => 'Ufone (Pak Telecom)' , 'network_charges' => '0.5' , 'server' => '11' , 'methode' => 'JSON' , 'our_sms_id' => '235171135665' , 'our_sms_status_code' => '1' , 'action' => 'waiting' , 'message_status' => 'Pending' ),
);
$arr2 = array(
array('to' => '923336088811', 'country' => 'Pakistan' , 'operator' => 'ZONG' , 'network_charges' => '10' , 'server' => '18' , 'methode' => 'JSON' , 'our_sms_id' => '235171135665' , 'our_sms_status_code' => '1' , 'action' => 'waiting' , 'message_status' => 'Pending' ),
array('to' => '923008090100', 'country' => 'Pakistan' , 'operator' => 'Warid' , 'network_charges' => '10' , 'server' => '18' , 'methode' => 'JSON' , 'our_sms_id' => '235171135665' , 'our_sms_status_code' => '1' , 'action' => 'waiting' , 'message_status' => 'Pending' ),
array('to' => '5345345345345', 'country' => 'Pakistan' , 'operator' => 'Telenor' , 'network_charges' => '10' , 'server' => '18' , 'methode' => 'JSON' , 'our_sms_id' => '235171135665' , 'our_sms_status_code' => '1' , 'action' => 'waiting' , 'message_status' => 'Pending' ),
);
$ported_numbers = array_uintersect($arr2, $arr1, 'compareDeepValue');
$check = array_diff_key($arr1, $ported_numbers);
$result = array_merge($ported_numbers, $check);
print_r($result);
exit;
function compareDeepValue($val1, $val2){
return strcmp($val1['to'], $val2['to']);
}
?>