What is the difference between $var and $$var?
Answer / Neeraj Sahu
$var is a normal PHP variable, while $$var is a variable whose name is stored in another variable. For example, `$name = 'example'; echo $$name;` would output 'example'.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can we extract string ?allinterview.com ? from a string ?http://info@allinterview.com? using regular expression of PHP?
What is file upload?
What does the unset() function means?
What is cookie?
Explain Traits in PHP?
How do you format and output a number with leading zero's?
Is polymorphism inherited?
Which function can be used to exit from the script after displaying the error message?
What is html used for?
How to execute an sql query?
How can we do user authentication without using session/cookies ? For ex:- From page1 accepts user name and password and need to check in all other pages whether the user has logged in or not
How do you register one session ?