Can you tell the difference between $message and $$message?



Can you tell the difference between $message and $$message?..

Answer / Imran

In PHP, the variable $message is a normal variable that can store data. On the other hand, $$message is a variable that contains the name of another variable. This is called a 'variable variable'. When using $$message, you are essentially referring to the variable whose name is stored in $$message.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

Print 3 highest salary

9 Answers  


What is mysql data directory? How to determine the location of the data directory?

1 Answers  


can you tell the order of sql select statement? : Mysql dba

1 Answers  


I've looked but can't find a MySQL equivalent for MS SQL's xp_cmdshell. I have 7z files that I want to unzip and load into MySQL. I'm trying to write a sp to do the unzip, but I can't find a way to do that. Can anyone provide an example of a similar process in Windows? TIA.

1 Answers  


What is database migration in mysql?

1 Answers  


why not null is not allowed at table level

1 Answers   Cognizant,


What is the size of mysql database?

1 Answers  


how to find max salary from the database

3 Answers  


How to Recover a MySQL root password. Stop the MySQL server process. Start again with no grant tables. Login to MySQL as root. Set new password. Exit MySQL and restart MySQL server.

1 Answers  


What is definer in mysql trigger?

1 Answers  


maximum database size of mysql database

2 Answers  


What is mysql port?

1 Answers  


Categories