Differentiate between PHP4 and PHP5.

PHP4PHP5
No support for static methodsAllows the usage of static methods
Abstract classes cannot be declaredAbstract classes can be declared
The method of call-by-value is usedThe method of call-by-reference is used
Constructors can have class namesConstructors have separate names

Comments

Leave a Reply

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