compare string in array php code example
Example: php array equality
$arraysAreEqual = ($a == $b); // TRUE if $a and $b have the same key/value pairs.
$arraysAreEqual = ($a === $b); // TRUE if $a and $b have the same key/value pairs
// in the same order and of the same types.
$arraysAreEqual = (array_diff($a, $b)==[] && array_diff($a, $b) == []);