Junior PHP Developer Question:

Download Job Interview Questions and Answers PDF

Do you know what’s the difference between __sleep and __wakeup?

Junior PHP Developer Interview Question
Junior PHP Developer Interview Question

Answer:

__sleep returns the array of all the variables that need to be saved, while __wakeup retrieves them.

Download Junior PHP Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain me what is the difference between $_FILES[‘userfile’][‘name’] and $_FILES[‘userfile’][‘tmp_name’]?Explain what does the function get_magic_quotes_gpc() means?