Re: [PHP] convert associative array to ordinary array
- From: tularis@xxxxxxx ("M. Sokolewicz")
- Date: Fri, 28 Mar 2008 19:39:22 +0100
Daniel Brown wrote:
On Fri, Mar 28, 2008 at 2:27 PM, It Maq <itmaqurfe@xxxxxxxxx> wrote:array_values() will throw out the keys and replace them with numeric indices.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?
Anyway, in PHP there is no difference between an "associative array" or an "ordinary array", they're both the same thing. Only one has integers as keys while the other has strings...
- Tul
.
- References:
- convert associative array to ordinary array
- From: It Maq
- Re: [PHP] convert associative array to ordinary array
- From: "Daniel Brown"
- convert associative array to ordinary array
- Prev by Date: Re: [PHP] convert associative array to ordinary array
- Next by Date: Re: [PHP] convert associative array to ordinary array
- Previous by thread: Re: [PHP] convert associative array to ordinary array
- Next by thread: Re: [PHP] convert associative array to ordinary array
- Index(es):
Relevant Pages
|