Re: Using a variable as a variable name

From: Date: Wed, 04 Sep 2002 12:19:53 +0000
Subject: Re: Using a variable as a variable name
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-21565@lists.php.net to get a copy of this message
hello, You can find syntax description in the documentation (variable variables section) $myvar1 = "MYVAR1 CONTENT"; $myvar2 = "MYVAR2 CONTENT"; $i = 0; $myvar = 'myvar'.++$i; echo "\n"; echo $$myvar; echo "\n"; $myvar = 'myvar'.++$i; echo "\n"; echo $$myvar; echo "\n"; can do it hth pa

« previous php.db (#21565) next »