what is the difference between $name and $$name in php?
In the above example $name is just a variable with string value="Rajeev". $$name is reference variable . $$name uses the value of the variable whose name is the value of $name.