E Online Support - Free Software Download
What is difference between $message and $$message in php????
I am not able to differenciate between $message and $$message.plz help me
Shruti
Answer
1

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 $var="Hello"; $message="var"; echo $message; //print var echo $$message; //print Hello.
Question*:
Description*:
Script:
Related To:
 PHP    HTML    CSS    JAVASCRIPT    JQUERY   
 AJAX    WINDOWS    GAMES    DRIVERS    MAC   
 LINUX    MOBILE    GADGETS   
Security Code:
3898
Enter Security Code:
 
Facebook   Linkedin   Skype   Twitter