RE: [PHP] How to remove the first element of an array?

From: Date: Thu, 20 Jun 2002 15:41:23 +0000
Subject: RE: [PHP] How to remove the first element of an array?
Groups: php.general 
Request: Send a blank email to php-general+get-103151@lists.php.net to get a copy of this message
> From: Leon Mergen [mailto:leon@antrophia.com] > Sent: Thursday, June 20, 2002 11:37 AM > 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... http://www.php.net/manual/en/function.array-shift.php

« previous php.general (#103151) next »