<?php $array = [0, 1, 2, 3]; unset($array[3]); function changeScope($array){ assert($array === array_values($array)); $array[] = "x"; assert([0, 1, 2, "x"] === $array, print_r($array, TRUE)); } changeScope($array);
You have javascript disabled. You will not be able to edit any code.