With the introduction of PHP 5 programmers will be enjoying numerous new features that will make their life more interesting.
i) PHP has new integrated for support for XML. The various functions and classes provided to handle XML in different ways all now use the same underlying library (libxml2). This should make XML features more stable and interoperable.
ii) The SQLite SQL library is now bundled with PHP, together with all the functions you need to work with it.
iii) PHP now supports private and protected methods and properties in classes.
iv) PHP supports class constants.
v) Objects passed to functions and methods are now passed by reference. That is, a reference to an object is passed around your script rather than copies of objects. This significantly reduces the likelihood of bugs in object-oriented code.
vi) PHP supports static methods and properties, making more advanced object-oriented designs possible.
vii) Methods can now be declared to require particular object types.
viii) The comparison operator (===) now checks that two references point to the same object. Previously, it was hard to test objects in this way.
ix) PHP now supports abstract classes and interfaces.
Leave a Reply
You must be logged in to post a comment.