Source Code:
(back to article)
<?php $arr1 = ["a" => "Apple", "b" => "Ball", "c" => "Cat"]; unset($arr1["b"]); var_dump($arr1); // RESULT: array("a" => "Apple", "c" => "Cat") $arr2 = [1, 2, 3]; unset($arr2[1]); var_dump($arr2); // RESULT: array(0 => 1, 2 => 3) ?>
Result:
Report an issue