$$ variable assigns value of variable's value.
PHP $$ variable
Example :
<?php
$str = "xyz"; //single dollar normal variable
$$str = 500; // double dollar reference variable
echo $str."<br/>"; // prints value of variable $str
echo $$str."<br/>"; // prints value of double dollar
echo $xyz;
?>
Output :
Comments