<?php $a = array(1,2,3); foreach($a as $i => $v) { echo "$v\n"; $a[$i] = $v * 2; } var_dump($a);
You have javascript disabled. You will not be able to edit any code.