Question:

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

Answer:

$$var sets the value of $var as a variable.

            $day='monday';
            $$day='first day of week';
            echo $monday; //outputs 'first day of week'
            

http://us2.php.net/manual/en/language.variables.variable.php


Keywords:

© 2017 QuizBucket.org