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
Tell me how stop the execution of a php scrip?
Does php need html?
How does firefox manage cookies?
What is $_ get in php?
How is it possible to set an infinite execution time for php script?
Do you know what is the use of the function 'imagetypes()'?
Does mysql need php?
What is the use of @ in php?
How to create database connection and query in php?
Difference between get and post method.
What are the different components used in php for formatting?
How to calculate the difference between two dates using php?
How are sessions maintained?
Is php used for frontend or backend?
What is exception handling in php?