RE: [PHP] Array Question

From: Date: Mon, 14 Apr 2003 19:20:49 +0000
Subject: RE: [PHP] Array Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143829@lists.php.net to get a copy of this message
On 14-Apr-2003 shaun wrote: > Hi, > > is it possible to have an array with a maximum value of two so that if a > add > a third value the first one gets removed from the array? > > $ary=array_slice($ary, -2, 2); Regards, -- Don Read dread@texas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.

« previous php.general (#143829) next »