Answers

Question and Answer:

  Home  Senior PHP Programmer

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

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

$day='monday';

$$day='first day of week';

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

 198 views

More Questions for you: