How to do a "for each" from the end of an array in PHP ?
The end function can only return me one element http://php.net/manual/fr/function.end.php
The end function can only return me one element http://php.net/manual/fr/function.end.php
Reverse the array and do a normal foreach
?
$newArray = array_reverse($array);
foreach ($newArray as $key => $value) {
...
}