<?php $array = [0, 1, 2]; $ref =& $array; // Necessary to trigger the old behavior foreach ($array as $val) { var_dump($val); $array[1] = 'X'; } var_dump($ref);
You have javascript disabled. You will not be able to edit any code.