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
Is empty check in php?
How to fix "headers already sent" error in php
How to replace a text in a string with another text in php?
What is the most common http method?
What is the scope of a variable defined in a function?
How is traits used in php?
Which function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);
How does php session work?
Explain the purpose of output buffering in php.
What is the meaning of die in php?
How can we define a variable accessible in functions of a php script?
What is isset post?
What is php and its uses?
How long do php sessions last?
How do I escape in php?