note 121467 deleted from language.variables.variable by cmb
| From: | cmb@php.net | Date: | Sun, 12 Jan 2020 08:23:25 +0000 |
| Subject: | note 121467 deleted from language.variables.variable by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213855@lists.php.net to get a copy of this message | ||
Note Submitter: Abel
----
In my "for" function I need often that my variable name have the value of another
variable. I proceed so:
for($i = 1; $i <= 4; $i++){
${text.${i}.original} = "Chapiter ".$i;
}
echo $text1original;
The result will be "Chapiter 1"