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 empty () in php?
What is class extend in php?
How can we pass the variable through the navigation between the pages?
Is a number php?
What is difference between single quotes and double quotes in php?
What is the use of friend function in php?
What is the use of strip_tags() method?
> symbol is used to redirect the output of a command. State Whether True or False?
How to convert a json string to an array in php?
What does addslashes do in php?
what is mean by portal
What is super () python?
Does php need html?
Code to open file download dialog in PHP?
How to execute a function in php?