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
What is input sanitization in php?
Explain the syntax for ‘foreach’ loop with example.
What is the use session in php?
What is the difference between array_map () and array_shift ()?
How escape single quotes php?
Explain what does the expression exception::__tostring means?
How do functions work?
How to join multiple strings stored in an array into a single string?
what is difference between PHP4 , PHP5
What is php addslashes?
Tell me how to create a text file in php?
How cookies are trported from browsers to servers?
How to get number of elements in an array?
How to assigning a new character in a string using php?
What is session expiry?