Search found 1 match

by maha96
Thu Jun 08, 2017 7:04 pm
Forum: PHP Questions / Hints
Topic: Dynamic variable names in PHP ?
Replies: 8
Views: 8846

Dynamic variable names in PHP ?

I'm trying to use dynamic variable names (I'm not sure what they're actually called) But pretty much like this:

for($i=0; $i<=2; $i++) {
$("file" . $i) = file($filelist[$i]);
}

var_dump($file0);
he return is null which tells me it's not working when i applied to fathers day quotes php web design