Is there an SPL Reverse array iterator in PHP? And if not, what would be the best way to achieve it?
I could simply do
$array = array_reverse($array)
$array1= array(10,20,30,40,50);
for($i = count($array1) - 1; $i >= 0; $i--) { $array2[] = $array1[$i]; } echo ""; print_r($array2); echo "";
"; print_r($array2); echo "