What are new features added in PHP5?
Following are new features added in PHP5
Access Modifiers are added in PHP5
PHP 5 introduces a number of new "magic" methods. Magic methods begin with a double underscore, and this requires changing any user-defined methods or functions that use this naming convention.
PHP5 has built-in exception classes that makes it very easy to create your own customized exceptions through inheritance.
PHP 5 introduces the Standard PHP Library (SPL), which provides a number of ready-made classes and interfaces.
PHP5 comes with PDO which is a common interface for different database systems is only made possible by the new object model.
SQLite is a database engine incorporated in php5 which can be used to develope faster, leaner and more versatile applications.
In PHP 5 all Extensible Markup Language (XML) support is provided by the libxml2 XML toolkit.
The reflection classes included in PHP 5 provide ways to introspect objects and reverse engineer code.
In addition to built-in classes, PHP 5 also offers built-in interfaces. Iterator is the most important, as a number of classes and interfaces are derived from this interface.
The major change to PHP in version 5 relating to OOP is usually summed up by saying that objects are now passed by reference.