Re: Purpose of $$var ?????

From: Date: Thu, 18 Jul 2002 23:02:14 +0000
Subject: Re: Purpose of $$var ?????
Groups: php.general 
Request: Send a blank email to php-general+get-108371@lists.php.net to get a copy of this message
>The script was working great before PHP 4.2.x and not after that. So, I >looked through the code and came upon this variable, "$$var". I have no >idea what the purpose of the double "$" is for a variable. Anyone know? > $var = "v".$counter."_high_indiv"; > $val3 = $$var; Read the manual about "variable variables" basically, they are creating a variable name like 'v1_high_indiv' (in $var) and then when they say $$var they really mean $v1_high_indiv It's probably not the source of your problem. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#108371) next »