Fix for array_splice??

  1. $input = array("red", "green", "blue", "yellow");
  2. $o = array_splice($input, 0, 2, array('orange'));
  3. // I want to: remove from input starting at 0, remove 2 things. Replace these with 'orange'
  4. // $input is now array("orange", "blue", "yellow") ???
  5. dsm($o);

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.