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
Explain me soundex() and metaphone()?
Do you know how can we check the value of a given variable is a number?
What is an operator in php?
What is the value for this auto incremented field user_pri_id?
Can age be a variable?
Do you know what is php?
How do you measure variables?
How to take a substring from a given string in php?
Which is the best web server?
Which Scripting Engine PHP uses?
What is phpsessid?
Tell me how can we determine whether a php variable is an instantiated object of a certain class?
What is the function file_get_contents() usefull for?
Tell me what are sql injections, how do you prevent them and what are the best practices?
Tell me what does the scope of variables means?