Re: array_shift and php 4.0.4
| From: | bvr@xs4all.nl | Date: | Thu, 10 Jan 2002 10:54:07 +0000 |
| Subject: | Re: array_shift and php 4.0.4 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80007@lists.php.net to get a copy of this message | ||
You are right, I should've known (used it before) ..
Ofcourse you could do an array_reverse() before and after,
don't know about the performance impact of that however.
bvr.
>array_pop() and array_shift are *different* :)
>
>array_pop() takes an element off the END of the array.
>array_shift() takes an element off the START of the array.