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
What is the string concatenation operator in php?
How does php server work?
What is cms php?
What are global variables in php?
Explain about looping in PHP?
How the values are ordered in an array?
How to compare two strings with comparison operators in php?
How to call php function in jquery?
Tell me how to initiate a session in php?
Which is better get or post method?
Explain about the $_GET variable of PHP?
How do I start a php session?
What sized websites have you worked on in the past?
What is uri routing?
What is lazy loading in php?