⟩ 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'
$$var sets the value of $var as a variable.
$day='monday';
$$day='first day of week';
echo $monday; //outputs 'first day of week'
Write a program using while loop?
What are the different errors in PHP?
How to strip whitespace (or other characters) from the beginning and end of a string?
How will you add a constructor function to a PHP class?
What is the use of "enctype" attribute in a html form?
How to find current date and time?
What is the purpose of date() function?
What is the value of "$day" in the below code?
Are objects in PHP 5 passed by value or reference?
What is the difference between $var and $$var?