Some help please with this thing that was confused me about the correct use of array_splice();
When i copy literally the following code from the php.net website, that appears as follow:
$input = array("red", "green", "blue", "yellow");
array_splice($input, 2);
// $input is now array("red", "green")
But on my localhost, the result is not as shown in the website example. I got this:
Array ( [0] => blue [1] => yellow )
What happens here?