What is the difference between $message and $$message ?
Answer Posted / vikram
$message="hello";
$hello="world";
echo $$message;
// will print "world"..this concept is called "variable of
variables"...
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
How to delete an element from an array?
What is $_ env in php?
What is singleton pattern in php?
How to return a value back to the function caller?
How to execute a function in php?
Is it possible to remove the html tags from data?
What is different types of visibility?
How to return ascii value of character in php?
What is filter_var?
What are sql functions?
What version of php do I have windows?
How many different types of messages available in php?
How to Pass JSON Data in a URL using CURL in PHP?
What are classes in php?
Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?