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