What is the difference between $message and $$message ?
Answer Posted / laxmikanta pradhan
$message is variable and $$message is variable variable i.e.
$message is a variable whereas $$message is a refrence
variable having the refrence of $message.
Ex. $message="hello";
$$message="world";
echo $hello; // prints world
echo ${$message} //prints world
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a http session?
What are the benefits of using queries?
What is the value for this auto incremented field user_pri_id?
Why is overriding runtime?
What's the difference between __sleep and __wakeup?
What is the difference between html and php?
What are the advantages of using php?
Explain about getters and setters in php?
What is the use of strpos in php?
Tell me what are the encryption techniques in php?
How to declare an array in php?
What is the difference between client-side and server-side programming?
Is overloading possible in php?
What does addslashes do in php?
Explain me what is the difference between explode() and split() functions?