What is the difference between $var and $$var?

In PHP , both are variables. But $var is a variable with a fixed name. $$var is a variable who’s name is stored in $var. For example, if $var contains “user”, $$var is the same as $user.