Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

What are some magic methods in PHP, how might you use them?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

Magic methods are basically triggers that occur when particular events happen in your coding. __GET, __SET are magic methods that are called (behind the seen) when you get or set a class property.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
What is MVC in PHP context?Can the value of a constant change during the script's execution?