Hello Rahul,
I think you will understand with this example so look at the code
$var = 'hello';
$$var = 'word';
echo $hello;
For example, the code creates a variable called $hello and outputs the string 'world'. The double dollar sign declares that the value of $var should be used as the name of newly defined variable.
Hope this will help you....!!!!!