PHP Community Marketing Expert Question:
Download Job Interview Questions and Answers PDF
Tell me what are magic methods?
Answer:
☛ Magic methods are member functions that are available to all the instance of class. Magic methods always start with “__”. Eg. __construct.
☛ All magic methods need to be declared as public
☛ To use a method, it should be defined within the class or program scope
☛ Various Magic Methods used in PHP 5 are: __construct() __destruct() __set() __get() __call() __toString() __sleep() __wakeup() __isset() __unset() __autoload() __clone().
☛ All magic methods need to be declared as public
☛ To use a method, it should be defined within the class or program scope
☛ Various Magic Methods used in PHP 5 are: __construct() __destruct() __set() __get() __call() __toString() __sleep() __wakeup() __isset() __unset() __autoload() __clone().
Download PHP Community Marketing Expert Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me what PSR Standards do you follow? Why would you follow a PSR standard? | Explain me your Link Building Process? |