Organizational Research By

Surprising Reserch Topic

Question:how to find diff key of n-dimensional arrays using php?



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



Related Hot Questions

1 Answer

0 votes

 

function n_array_diff ($a1, $a2) {
        foreach($a1 as $k => $v) {
            $r[$k] = is_array($v) ? n_array_diff($a1[$k], $a2[$k]) : array_diff_key($a1, $a2);
        }
        return $r;
}
?>
that is print everything, what is missing in $a2 array .
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...