Source Code:
(back to article)
<?php $items = [1, 2, 3, 4, 5]; $items = array_reverse($items); foreach ($items as $item) { echo $item . "\n"; }
Result:
Report an issue