+ 4
In order to get the value for the first variable.
let me explain you with an example:
<?php
$a= "hello";
$hello= "hey";
$hey="hi";
echo $$a; // will give you the output as Hi
echo $a; // will give you the output as Hey
?>
since we are assigning one variable value to another we must use dollar's symbol respectively.