Organizational Research By

Surprising Reserch Topic

Question:how to diff between n-dimensional array using php ?



asked Sep 13, 2013 in PHP by rajesh
edited Sep 12, 2013
0 votes
16 views



Related Hot Questions

1 Answer

0 votes

 

To diff between n-dimensional array, juste use this : 
 
function array_diff_values($tab1, $tab2) 
    { 
    $result = array(); 
    foreach($tab1 as $values) if(! in_array($values, $tab2)) $result[] = $values; 
    return $result; 
    } 
?>
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...