Source Code:
(back to article)
<?php $array = [1, 2, 3, 4, 5]; foreach ($array as $key => $value) { unset($array[$key]); } var_dump($array);
Result:
Report an issue