Assume that I have two arrays as follow:
$array1 = array(1, 3, 5); $array2 = array(\'x\'=> 1, \'y\'=> 2, \'z\'=> 5);
How to check that
like this:
"green", "b" => "brown", "c" => "blue", "red"); $array2 = array ("a" => "green", "yellow", "red"); $result = array_diff($array1, $array2); if(count($result) == 0) { ....... } ?>