note 21647 deleted from language.variables.variable by philip

From: Date: Wed, 16 Mar 2005 01:19:04 +0000
Subject: note 21647 deleted from language.variables.variable by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-86514@lists.php.net to get a copy of this message
Note Submitter: juadielon_NOSPAM at hotmail dot com ---- //So you used some variables to store values: $a1=”one”; $a2=”two”; $a3=”three”; //And for instance you want to display them without typing again the variables for ($i=1; $i<=3; $i++) { $b=${'a'.$i}; //this is the important one echo $b; } //The result should be onetwothree This code alone probably doesn’t mean anything, but if you adapt this to your needs soon you will discover the power of PHP.

« previous php.notes (#86514) next »