1 2 3 4 5 6 7 8
<?php $array = array(1, 2, 3, 4, 5); foreach ($array as $key => $item) { echo "$item\n"; each($array); }
1 2 3 4 5