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