From: "Ken Tossell" <[EMAIL PROTECTED]> ... > On Sun, 4 Jan 2004 [EMAIL PROTECTED] wrote: > > > The example says that: > > array_shift($input) > > > > is equivalent to: > > array_splice($input, -1) > > > > but that's not right. it's equivalent to: > > array_splice($input, 0, 1) > > This is true, assuming you're talking about the effect it has on $input, > rather than the array which it returns. I'll try to clear that up.
Right. And since the manual page gives the same exact example for array_pop() (in the line directly above the array_shift example) it's ambiguous whether the example refers to the $input or the returned value. -Bharat
