What is the difference between $message and $$message?
Answer Posted / darshit
$Message = "YOU";
$you= "Me";
echo $message //Output:- you
echo $$message //output :-Me
It means
$message is a variable and
$$Message is variable of variable
A variable of variable allows us to change the name of
variable dinamically
| Is This Answer Correct ? | 73 Yes | 10 No |
Post New Answer View All Answers
What happens when submit button is clicked?
Why delimiter is used in mysql?
What are the rules in creating php variable?
What is oops php?
What is difference between base_url and site_url?
What is difference between action hook and filter hook?
What is the difference between php and core php?
How can we define a variable accessible in functions of a php script?
How many types of php frameworks are there?
Tell me how to find the length of a string?
What is null value in php?
Whether it is possible to share a single instance of a memcache between multiple php projects?
What are the 3 types of sessions?
How to Retrieve a Cookie Value?
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?