Reply to Re: NEWBIE: How to iterativley populate an associative array
Posted by Benjamin on 02/23/07 03:12
On Feb 22, 1:55 pm, Lorenzo Thurman <lore...@diespammerhethurmans.com>
wrote:
> I know how to do this with an indexed array, but if i'm retrieving data
> from a query and would like to add it to an associative array, how
> should i go about that?
If you have an array named $myArray, you can add another element like
this:
$myArray["index"] = $results
> TIA