Difference between Both: The variable $var is used to store the value of the variable and the variable $$val is used to store the reference of the variable.