loop through array backwards php code example
Example 1: php foreach reverse
foreach(array_reverse($array) as $var) {
echo $var // Will show in reversed order
}
Example 2: php loop backwards through array
for($i = count($array) - 1; $i >= 0; $i--){
}