$$a uses the value of the variable whose name is the value of $a.
It means $$a is known as reference variable where as $a is normal variable.
It allows you to have a variable of variable This program can create the variable name the same way it can create any other string.
PHP
<?php
$test = "hello findnerd";
$a = "test";
echo $$a;
//output will be hello findnerd
?>
0 Comment(s)