php4 and php5

Difference between php4 and php5
No. PHP 4 PHP 5
1 Unified Constructors and Destructors: In PHP4, constructors had same name as the class name. In PHP5, you have to name your constructors as __construct() and destructors as __destruct().
2 Abstract: In PHP5 you can declare a class as Abstract.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>