Given 2 associative arrays:
$fruits = array ( \"d\" => \"lemon\", \"a\" => \"orange\", \"b\" => \"banana\", \"c\" => \"apple\" ); $fruits2 = array
Use array array_values ( array $input ) function and compare them.
$value1=array_values($fruits); $value2=array_values($fruits2); for ( $i = 0; $i < count($value1); $i++) { $test[] = $value1[$i] == $value2[$i] ? TRUE : FLASE; }