Reading Note 2 – PHP 5 Advanced OOP and Design Patterns

phpoo

Problem of Object Orient in PHP4.

  1. pass an object to a variable, a copy of the object would be created unless you pass it by reference (&)
  2. prevented implementing some additional features on top of the existing object model, such as public/private/protected, unified constructor/destructor name, interfaces, instanceof (instead of is_a() in PHP4), final methods/classes, __clones, class constants, static methods/members, abstract classes/methods, class type hints in function declarations, iterators, __autoload()

New features in PH5

  1. Error handling
  2. foreach with references and pass references into function
  3. all XML extensions have been rewritten to use the superb libxml2 XML toolkit
  4. New MySQLi (MySQL Improved) Extension
  5. SQLite extension
  6. Tidy Extension
  7. Perl Extension
  8. New Memory Manager
  9. drop support for windows 95

2 thoughts on “Reading Note 2 – PHP 5 Advanced OOP and Design Patterns”

  1. Thanks for writing this awesome article. I’m a long time reader but I’ve never been compelled to leave a comment.
    I saved your blog in my rss feed and shared it on my Facebook.
    I will come back for sure to check your future posts!

  2. Thanks for publishing this awesome article. I’m a long time reader but I’ve never been compelled to leave a comment.
    I subscribed to your blog and shared it on my Facebook.
    Thanks again for this great post!

Leave a Reply

Your email address will not be published. Required fields are marked *