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 are the uses of php language?
What is the difference between echo print and print_r in php?
What is use of echo in php?
Which variable declarations within a class is invalid in php?
What is constructors and destructors?
Is php secure?
What is array filter php?
write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.
How do you pass a variable by value in php?
Explain me how to include a file to a php page?
Explain the differences between get and post methods?
Tell me what the difference between the 'bitwise and' operator and the 'logical and' operator?
Write an example to remove html tags from a string in php?
What is php in full?
What are the common uses of php?