What is the difference between $message and $$message ?
Answer Posted / prasad
$message is variable and $$message is variable variable.
$message="hello";
$$message="world";
echo $hello; // prints world
echo ${$message} //prints world
variable variable cant be used in php superglobalarray. and
cant use in functions and within classes
| Is This Answer Correct ? | 25 Yes | 6 No |
Post New Answer View All Answers
What is in a cookie?
Explain what does the expression exception::__tostring means?
Which function would you use to insert a record into a database in php?
How many escape sequences are recognized in single-quoted strings?
What does php do?
What is difference between static and constant in php?
Tell me what does the scope of variables means?
What is difference between print_r and echo in php?
What is the use of get and post method in php?
What u mean by query?
How to create a table using php?
Whether php supports microsoft sql server?
What is the difference between $message and $$message in php?
Where can I find php ini file?
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?