Variables variables in php?

Using as a basis ONLY the $a variable, to create 4 variables, each of which will be named the same as the previous value..
Can not seem to figure out how to make 4 other variables... am I missing something?
$x = "name";
$$x = "Bob"; // Instead of $name is substituted for x and creates a new variable $name
echo $name; // "Bob"
March 19th 20 at 09:16
2 answers
March 19th 20 at 09:18
$a = 'foo';
$$a = 'bar';
$$$a = 'baz';
$$$$a = 'azaza';
$$$$$a = 'bubaba';
March 19th 20 at 09:20

Find more questions by tags PHP