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 inheritance in php with example?
What is the difference between myisam and innodb?
Tell me what is the actually used php version?
What is php destruct?
How error handling is being handled by php?
What is difference between python and php?
What is the difference between for and foreach?
How can we check the value of a given variable is a number?
What is faster?
How do you access a get requests url parameter with php?
What is list function with their uses.
What should be the length of variable for SHA256?
Differences between get, post and request methods ?
Is nan in php?
What is use of header() function in php? What the limitation of header()?