Question and answer is powered by AnsPress.io
$var = ‘foo’;
$$var = ‘bar’;
echo $foo;
What will be the output?
$a = “welcome”;
$welcome = 50;
echo $a /// will print : welcome
echo $$a /// will print : 50
the process is in $$a , will treat welcome as a variable not a value