PHP large array performance -
i have large array in want compare each element previous element.
is practice (and better performance) if each element i'm finished i'll remove element using array_pop?
thanks.
if , dealing non associative array do
$n = count($array); for($i = 1; $i < $n; $i++){ //compare $array[$i] $array[$i - 1] }