PHP Bucle hacia atrás a través de la matriz
$array = array_reverse($array);
foreach($array as $currentElement) {}
Friendly Hawk
$array = array_reverse($array);
foreach($array as $currentElement) {}
for($i = count($array) - 1; $i >= 0; $i--){
}
<?php
$input = array("php", 4.0, array("green", "red"));
$reversed = array_reverse($input);
$preserved = array_reverse($input, true);
print_r($input);
print_r($reversed);
print_r($preserved);
?>