Find the best answer to your question, help others answer theirs

If you are going to use a passage of Lorem Ipsum, you need to be sure there
isn't anything embarrassing hidden in the middle of text.

  • Anybody can ask a question
  • Anybody can answer
  • The best answers are voted up and rise to the top
Difference between PHP4 and PHP5?
Asked 8 years ago
Active 2 months ago
Viewed 756 times

1 Answer

2
There are several differences between PHP4 and PHP5:

  • Unified constructor and Destructor.
  • Exception has been introduced.
  • New error level named E_STRICT has been introduced.
  • Now we can define full method definitions for a abstract class.
  • Within a class we can define class constants.
  • We can use the final keyword to indicate that a method cannot be overridden by a child.
  • Public, private and protected method introduced.
  • Magic methods has been included.
  • We can pass value by reference
  • PHP4 uses Zend engine 1.0 as a parser.PHP5 uses Zend engine 2.0
Edit
avatar
Majed Badawi
15.5k 3 10 26
answered 8 hours ago

Leave a Comment

[named hyperlinks] (https://example.com)
**bold**
_italic_

Your Answer

Drop files here or click to upload.