You are here: Re: NEWBIE: How to iterativley populate an associative array « PHP Programming Language « IT news, forums, messages
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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация