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
Explain the difference between session and cookies in php?
Is laravel better than codeigniter?
What is the default time of cookie in php?
How can we make a constant in php?
How can you declare the array in php?
What is string in php?
What is isset and unset in php?
What is move_uploaded_file in php?
What is mean by an associative array?
Which function is used in php to delete a file?
How to access a Static Member of a Class in PHP?
How cookies are transported from servers to browsers?
Tell me how do you define a constant?
Explain difference between urlencode and urldecode?
How to remove blank spaces from the string?