There are many differences between PHP4 and PHP5-
- PHP5 was powered by Zend Engine II,while PHP4 was powered by Zend Engine 1.0
- In PHP5 abstract classes are used but not used in PHP4.
- In PHP5 interfaces are used but not used in PHP4.
- In PHP5 visibility are used but not used in PHP4.
- In PHP5 magic methods (such as __call, __get, __set and __toString)are used but not uesd in PHP4.
- In PHP5 typehinting are used but not used in PHP4.
- In PHP5 incorporates static methods and properties.
- In PHP5 cloning are used but not used in PHP4.
- In PHP5 construtor are written as __construct keyword but in PHP4 are written as class name.
- In PHP5 special function intorduces called __autoload()
- In PHP5 there is new error level defined as ‘E_STRICT’
- In PHP5 there is new default extensions such as SimpleXML, DOM and XSL, PDO, and Hash.
- In PHP5 a new MySQL extension named MySQLi for developers using MySQL 4.1 and later.
- In PHP5, SQLite has been bundled with PHP.
Posted by Amit Tiwari
No comments:
Post a Comment