What is the difference between $message and $$message ?
Answer Posted / prasad
$message is variable and $$message is variable variable.
$message="hello";
$$message="world";
echo $hello; // prints world
echo ${$message} //prints world
variable variable cant be used in php superglobalarray. and
cant use in functions and within classes
| Is This Answer Correct ? | 25 Yes | 6 No |
Post New Answer View All Answers
Which function is used in php to delete a file?
Write down the benefits of php7?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is escape data in php?
Write a program to display reverse of any number?
Tell me how do I escape data before storing it into the database?
Does php support overloading?
Tell me what is the main difference between php 4 and php 5?
Tell me what does the array operator '===' means?
What is use of header() function in php?
Explain some most commonly use string functions in php?
Explain the difference between require() and require_once()?
What is lazy loading in php?
What is a string in php?
What is final keyword in php?