I have two arrays with different size but the same element name. and i want to compare that two arrays to find different element.
$arr_1=array(array('name'=>'john','sex'=>'male','grade'=>'9'),array('name'=>'Smith','sex'=>'male','grade'=>'11'));
$arr_2=array(array('name'=>'john','sex'=>'male','grade'=>'9'),array('name'=>'Smith','sex'=>'male','grade'=>'11'),array('name'=>'Kelly','sex'=>'female','grade'=>'10'));
i want to find the different element between that two arrays and printout the result.
i want output like this
'name'=>'Kelly','sex'=>'female','grade'=>'10'