Junior PHP Developer Question:
Download Job Interview Questions and Answers PDF
Explain what is the difference between $var and $$var?
Answer:
They are both variables. But $var is a variable with a fixed name. $$var is a variable who's name is stored in $var. For example, if $var contains "message", $$var is the same as $message.
Download Junior PHP Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me what is the difference between ereg_replace() and eregi_replace()? | Tell me what is the use of "enctype" attribute in a html form? |