Answers for "php iterate array in reverse order"

PHP
3

php foreach reverse

foreach(array_reverse($array) as $var) {
	echo $var // Will show in reversed order
}
Posted by: Guest on May-06-2020
0

php loop backwards through array

for($i = count($array) - 1; $i >= 0; $i--){

}
Posted by: Guest on April-01-2020

Code answers related to "php iterate array in reverse order"

Browse Popular Code Answers by Language