Sr. PHP Programmer Question:
Download Job Interview Questions and Answers PDF
What is the difference between $var and $$var in PHP?
Answer:
$$var sets the value of $var as a variable.
$day='monday';
$$day='first day of week';
echo $monday; //outputs 'first day of week'
$day='monday';
$$day='first day of week';
echo $monday; //outputs 'first day of week'
Download Senior PHP Programmer Interview Questions And Answers
PDF
Previous Question | Next Question |
How do you load classes in PHP? | How can we get the IP address of the client? |