Question and answer is powered by AnsPress.io
$var = ‘foo’;
$$var = ‘bar’;
echo $foo;
What will be the output?
dynamic variable: if $var = variableOne, $$var will be $(variableOne) indefination we have a dynamic variable: $variableOne.