PHP $ and $$ Variables:
The $var is a normal variable with the name that stores any value like, integer, float, etc. The $$var is a reference variable that stores the value of the $var inside it.
<?php
$a = “abc”;
$$a = 100;
echo $a."<br/>";
echo $$a."<br/>";
echo $abc;
?>