What is the difference between $message and $$message?
Answer Posted / mahesh role
$message : It is static variable
$$message : It is an dynamic variable
$Message = "YOU";
$you= "Me";
echo $message //Output:- you
echo $$message //output :-
//because the letter in Message and variable is not same
$Message = "you";
$you= "Me";
echo $message //Output:- you
echo $$message //output :-Me
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Tell me how to retrieve a cookie value?
What is singleton class in php?
Tell me what does the initials of php stand for?
How to call a php function from html button?
How to set a value in session? How to remove data from a session?
What does PEAR stands for?
What is csrf token and how will you add csrf token in ajax?
What is the difference between the functions strstr() and stristr()?
How to turn on the session support in php?
What is the difference between == and === in php?
Which parts of php are case sensitive?
What function should you use to join array elements with a glue string?
What are the differences between session and cookie?
Distinguish between urlencode and urldecode?
What does php mean?