php arrays
- Started
- Last post
- 2 Responses
- oculasm
wonder if anyone can help me?
can I have a numercially indexed array that has associative arrays as its array elements?
entries array
(numerically indexed array)
|
|
|
\_ entry array (associa.)
|
|
|
\_ entry array (associa.)
|
|
|
\_ entry array (associa.)if so could anyone point me to an example? I'd be very grateful for any help.
- enobrev0
do you mean something like...
$myarray[0]['flavor'] = purple
$myarray[0]['color'] = purple
$myarray[0]['brand'] = KoolAid
$myarray[1]['flavor'] = orange
$myarray[1]['color'] = orange
$myarray[1]['brand'] = ghettoMix
$myarray[2]['flavor'] ...if so, what do you want to know about it? If not, i don't quite get what you're asking.
- oculasm0
thanks enobrev,
you have just answered my question.. I only wanted to know if its possible to have such an array...