PHP Throwing Exceptions

Jul 06, 2009 Author: LinuxAdmin
Exceptions are usually created and thrown when an error occurs by using the throw construct:

The Basic Exception Class in PHP

Jul 05, 2009 Author: City Hall
As we mentioned in the previous paragraph, exceptions are objects that must bedirect or indirect (for example through inheritance) instances of the Exception baseclass. The latter is built into PHP itself,…


Jul 05, 2009 Author: LinuxAdmin
Interfaces, are used to specify an API that a class must implement.This allows you to create a common contract4 that your classes must implement inorder to satisfy certain logical requirements for example,…

Abstract Classes.php

Jul 02, 2009 Author: City Hall
Yet another new feature added to PHP 5 is that of Interfaces and Abstract classes.These are both used to create a series of constraints on the base design of a group ofclasses.

Class.php Constants

Jul 02, 2009 Author: Developer
Class constants work in the same way as regular constants, except they are scopedwithin a class. Class constants are public, and accessible from all scopes; for example,the following script will output…