<?php $array = array(1, 2, 3, 4, 5); foreach ($array as $key => &$item) { echo "$item\n"; $item = 1; echo $array[$key]; echo "\n"; reset($array); }
You have javascript disabled. You will not be able to edit any code.