note 49035 deleted from language.variables by googleguy
| From: | googleguy@php.net | Date: | Mon, 11 Feb 2013 05:19:20 +0000 |
| Subject: | note 49035 deleted from language.variables by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193595@lists.php.net to get a copy of this message | ||
Note Submitter: ringo78 at xs4all dot nl
----
<?php
// I am beginning to like curly braces.
// I hope this helps for you work with them
$filename0="k";
$filename1="kl";
$filename2="klm";
$i=0;
for ($varname = sprintf("filename%d",$i); isset ( ${$varname} ) ; $varname =
sprintf("filename%d", $i) ) {
echo "${$varname} <br>";
$varname = sprintf("filename%d",$i);
$i++;
}
?>