What is the difference between $message and $$message ?
Answer Posted / prasad
$message is variable and $$message is variable variable.
$message="hello";
$$message="world";
echo $hello; // prints world
echo ${$message} //prints world
variable variable cant be used in php superglobalarray. and
cant use in functions and within classes
Is This Answer Correct ? | 25 Yes | 6 No |
Post New Answer View All Answers
What software is required to run php?
The left association operator % is used in PHP for?
What is purpose of @ in Php?
What are default session time and path?
What is Gd PHP?
Explain how to run the interactive php shell from the command line interface?
Write down the code for save an uploaded file in php.
what is PDO?
Explain me what is the use of 'print' in php?
What is the difference between $var and $$var?
What is the purpose of constant() function?
What is php oop?
How to assigning a new character in a string using php?
What is x+ mode in fopen() used for?
How many types of errors in php?