Re: note 38720 added to function.array-splice
| From: | Ken Tossell | Date: | Sun, 04 Jan 2004 22:51:37 +0000 |
| Subject: | Re: note 38720 added to function.array-splice | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969357916@lists.php.net to get a copy of this message | ||
On Sun, 4 Jan 2004 bharat@menalto.com 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.
Ken
kennyt at php dot net
http://www.kennyt.com/