Re: convert associative array to ordinary array

From: Date: Fri, 28 Mar 2008 18:49:18 +0000
Subject: Re: convert associative array to ordinary array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-272255@lists.php.net to get a copy of this message
thank you, it works! --- Casey <heavyccasey@gmail.com> wrote: > 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 > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

« previous php.general (#272255) next »