Check if two arrays have the same values (regardless of value order) [duplicate] May 14, 2023 by Tarik sort($a); sort($b); if ($a===$b) {//equal}