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
Why php is used with mysql?
What is in a cookie?
Which operator is used to combine string values in php?
What is difference between Method overriding and overloading in PHP?
How to create reusable code in php?
How can image properties be retrieved in php?
What are advantages of .htaccess?
What is the difference between require and include in php?
How can you make a connection with mysql server using php?
Tell me what is the actually used php version?
What is boolean in php?
Which function is used in php to check the data type of any variable?
How can we upload a file in php?
Does php pass arrays by reference?
What is Gd PHP?