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 the php function that removes the last element of the array and returns it?
Which function you can use in php to open a file for reading or writing or for both?
What is a php session?
Explain how we can retrieve the data in the result set of mysql using php?
How we can retrieve the data in the result set of mysql using php?
How to open a file for writing?
What are interfaces in php?
What is the difference between require and include in php?
Does php have future?
How do you find the length of a string in php?
Why is used in php?
How long is session timeout?
What is the difference between php traits vs interfaces?
Which php framework is best for security?
Why use php artisan serve?