PHP Exception Handling

An exception is an event that occurs during the execution of a program that disrupts the normal flow of execution of the application. An exception can be handled by keywords like try,catch,throw, finally in php...

PHP oops - Magic Method

Magic methods are special methods that are used to perform certain tasks in PHP. Magic methods are started with double underscore (__) as prefix. The function __construct(), __destruct(), __call(), __callStatic(), __get(), __set(), __isset(), __unset(), __sleep(), __wakeup(), __serialize(), __unserialize(), __toString(), __invoke(), __set_state(), __clone() and __debugInfo() are called as Magic Methods in php...

PHP OOPs - Interfaces

What is an interface in php? An interface contains All abstract methods by default. An interface doesn't have any common methods. Methods of interface do not have any implementation part. Methods of interface are only declared....