title: Array splice PHP and error in the documentation?
body: <p>Take a look at this page with the documentation for <code>array_splice</code>, and inspect the first example.</p>
  
  <p><a href="http://www.php.net/manual/en/function.array-splice.php" rel="nofollow">http://www.php.net/manual/en/function.array-splice.php</a></p>
  
  <p>It is confusing me as the following code in example 1 is not correct as far as I can tell,</p>
  
  <pre><code>$input = array("red", "green", "blue", "yellow");
  array_splice($input, 2);
  // $input is now array("red", "green")
  </code></pre>
  
  <p>When I do this on my local machine I get the following,</p>
  
  <pre><code>$array = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
  array_splice($array, 10);
  // $array is now array(11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
  </code></pre>
  
  <p>On PHPs page the example <strong>returns</strong> the elements, whereas on my local machine it <strong>removes</strong> them instead?</p>
  
  <p>I don't get it? Am I missing something?</p>