Wednesday, January 13, 2010

About PHP5

PHP5 has improved support for OOPS when compared to PHP4. The 4 pillars of OOPS are fully supported by PHP5 i.e. Encapsulation, Inheritance, Polymorphism and abstraction. You can also create interfaces; if you have been designing classes for a
while, you know how important interfaces are.

PHP5 also provides performance improvements as it has made significant changes to its
core ‘C’ code. This means that the execution of PHP5 programs will now gain the
needed performance improvement.

PHP5 has an integrated support for SOAP as it provides in-built classes for SOAP calls.

PHP5 offers Exception handling mechanism that was missing in its earlier version. You no longer have to write your own logic to return different type of values from one function to another in case of errors. You can now surround your code by try..catch blocks and write necessary logic inside your functions and raise an Exception. You can also extend from the existing Exception class to create your own Exception class.

No comments: