<?php $ar = [1, 2, 3]; foreach ($ar as $k => &$v) { $v = 1; } var_dump($ar);
You have javascript disabled. You will not be able to edit any code.