1 2 3 4 5 6 7
<?php for($i=0;$i<=2;$i++){ ${"file" . $i} = 'var: ' . $i; } var_dump($file0);
1
string(6) "var: 0"