Check if two arrays have the same values (regardless of value order)
arrays, comparison, php
Solution
sort($a);
sort($b);
if ($a===$b) {//equal}
Problem
``` [2,5,3] [5,2,3] ``` They are equal because they have the same values, but not in the same order. Can I find that out without using a `foreach()` loop with `in_array()`? I don't think it would be efficient.