Re: How to remove the first element of an array?
| From: | Andy | Date: | Thu, 20 Jun 2002 18:32:00 +0000 |
| Subject: | Re: How to remove the first element of an array? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103189@lists.php.net to get a copy of this message | ||
Hello Leon,
try array_shift
http://www.php.net/manual/en/function.array-shift.php
Hope this helps,
Andy
--
----------------------------------------------------
http://www.globosapiens.net
Global Travellers Network!
"Leon Mergen" <leon@antrophia.com> schrieb im Newsbeitrag
news:20020620153552.1182.qmail@pb1.pair.com...
> Hello,
>
> I would like to know what the best (and fastest) way to remove the first
> element of an array is?
>
> So actually, I want $array[0] removed, and $array[1] to become 0,
$array[2]
> to become 1, etc etc...
>
>