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

Submitted by: Muhammad
$$var sets the value of $var as a variable.

$day='monday';
$$day='first day of week';
echo $monday; //outputs 'first day of week'
Submitted by: Muhammad

Read Online Sr. PHP Programmer Job Interview Questions And Answers