Re: Unique Names for Variable in Loop

From: Date: Thu, 02 Feb 2006 20:06:35 +0000
Subject: Re: Unique Names for Variable in Loop
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-229757@lists.php.net to get a copy of this message
On Thu, February 2, 2006 1:15 pm, Albert Padley wrote: > I must be brain dead today since I can't get my syntax correct. > > Simple MySQL query to return a list of last_name. No problem. Each > last name returned needs to be assigned to a unique variable like > name1, name2, name3, etc. > > Somebody just kick me in the right direction. What you describe is a Variable Variable. The right direction is an array. :-) http://php.net/ documents both in readily-found sections. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#229757) next »