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
Tell me how comfortable are you with writing html entirely by hand?
How to execute a php script from the command line?
Which function gives us the number of affected entries by a query?
Why do we need abstract class in php?
What is php7?
How can we determine whether a variable is set?
Which function is used in php to count the total number of rows returned by any query?
What is the difference between print() and echo() in PHP?
How to process the uploaded files?
What is the use of mvc in php?
What is helper library?
What does mysqli_query return?
What is if isset ($_ post submit )) in php?
How to block direct directory access in PHP?
How to define a user function?