View Single Post

  #5 (permalink)  
Old 03-28-2008
It Maq
 
Posts: n/a
Default Re: [PHP] convert associative array to ordinary array

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=Ahu06i...Dypao8Wcj9tAcJ

Reply With Quote