Re: convert associative array to ordinary array

From: Date: Fri, 28 Mar 2008 18:39:45 +0000
Subject: Re: convert associative array to ordinary array
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-272254@lists.php.net to get a copy of this message
On Fri, Mar 28, 2008 at 10:33 AM, Daniel Brown <parasane@gmail.com> wrote: > On Fri, Mar 28, 2008 at 2:27 PM, It Maq <itmaqurfe@yahoo.com> wrote: > > Hi, > > > > i have an associative array and i want to use it as an > > ordinary array, is that possible? > > > > what i mean is instead of $arr['fruit'] i want to call > > it by its position in the array $arr[3] > > Did you try? > > -- > </Daniel P. Brown> > Forensic Services, Senior Unix Engineer > 1+ (570-) 362-0283 > > > $numbered_array = array_values($associative_array); -- -Casey

« previous php.general (#272254) next »