Organizational Research By

Surprising Reserch Topic

Question:how to find find the difference of two array in php



asked Sep 13, 2013 in PHP by rajesh
edited Sep 12, 2013
+1 vote
27 views



Related Hot Questions

1 Answer

0 votes

 

function array_unique_diff_key ($array1, $array2) 
{ 
  if (is_array($array1) && is_array($array2)) 
    return array_diff_key($array1, $array2) + array_diff_key($array2, $array1); 
  else if (is_array($array1)) return $array1; 
  else if (is_array($array2)) return $array2; 
  else return array(); 
} 
?>
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...