Suppose there are arrays
$a = array(1,2,3); $b = array(3,2,1); How can I determine if the values are the same in these arrays without enumerating one of them? I need a solution like
if($a == $b){ } If this is of course. And I can’t attach such a method to an existing function
foreach ($a as $key => $value) { if (in_array($value, $b)) { } } I need to get at the output not the differences of the arrays, but their equality or non-equality of the values of the arrays.