quick syntax question
| From: | indrek siitan | Date: | Sat, 23 Dec 2000 12:18:20 +0000 |
| Subject: | quick syntax question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-31666@lists.php.net to get a copy of this message | ||
Hi,
is there a possibility to do the following without the interim
variable?
$question=10;
$answer_10="Foo";
$var="answer_".$question;
echo $$var;
Rgds,
Tfr
--==< tfr@cafe.ee >==< http://tfr.cafe.ee/ >==<
+372-50-17621 >==--