What is difference between $message and $$message in php????
I am not able to differenciate between $message and $$message.plz help me
The only difference between $message and $$message is that, $message is a normal variable and $$message is variable to variable. The difference in functioning is shown below:
When declaring a variable in PHP the variable gets declared like this
$message //which is simply a variable
To store the data to assign the value to it we write like
$message= “ride”; //assigned the string to the variable
echo $message; // it will print the value
Whereas if you want to display the variable to variable then you use
echo $message; //print var
echo $$message; //print Hello.