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 use of mysql_fetch_assoc in php?
What is singleton pattern in php?
Write a program to find a string is palindrome or not?
What are the differences between GET and POST methods in form submitting?
What is sorting php?
List few sensible functions in PHP?
Is multilevel inheritance possible in php?
Is uploaded file php?
What is a php object?
How to create a table using php?
Does apache use php?
What is the difference between require and include in php?
Is php object oriented?
Differentiate between php5 and php7?
Explain me soundex() and metaphone()?