What is the difference between $message and $$message ?
Answer Posted / laxmikanta pradhan
$message is variable and $$message is variable variable i.e.
$message is a variable whereas $$message is a refrence
variable having the refrence of $message.
Ex. $message="hello";
$$message="world";
echo $hello; // prints world
echo ${$message} //prints world
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to process the uploaded files?
What is meant by urlencode and urldecode?
What is difference between echo and print_r in php?
What is htaccess? Why do we use this and where?
What is difference between sql and php?
How to redirect https to http url and vice versa in .htaccess?
How to create a session? How to set a value in session?
Does php support function overloading?
Inside a php function, what param needs to be set in order to access a global variable?
What is cakephp framework?
Why is php used for web development?
is that "enumerated array" equal to "numeric array"?
What is the difference between require_once and require in php?
Why super () is used in java?
Why namespace is used in php?