Re: [PHP] convert associative array to ordinary array



thank you, it works!

--- Casey <heavyccasey@xxxxxxxxx> wrote:

On Fri, Mar 28, 2008 at 10:33 AM, Daniel Brown
<parasane@xxxxxxxxx> wrote:
On Fri, Mar 28, 2008 at 2:27 PM, It Maq
<itmaqurfe@xxxxxxxxx> 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

.


Quantcast