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 symfony php?
How to store the uploaded file to the final location?
How many types of arrays are there in php?
Is it possible to remove the html tags from data?
What is orm in php framework?
Can I use php in html?
Which php mvc framework is best?
What is the main difference between require() and include()?
How to get the number of characters in a string?
How to get the http request in php?
What is laravel php?
> symbol is used to redirect the output of a command. State Whether True or False?
How can we check the value of a given variable is alphanumeric?
Why php 7 is faster?
Is php an oop?