I cannot seem to find this answer by googling it, nor could I find a function on php.net but is there an easier way to compare arrays than the following?
$a1 = array(1, 2, 3);
$a2 = array(1, 2, 3);
if ($a1[0] == $a2[0] && $a1[1] == $a2[1] && $a1[2] == $a2[2]) eco "The array's are the same";
Thank you.