WHat is the diff. between PHP4 and PHP5?

Answer Posted / pushpendra kumar

There are several differences between PHP4 and PHP5.
1.Unified constructor and Destructor.
2.Exception has been introduced.
3.New error level named E_STRICT has been introduced.
4.Now we can define full method definintions for a abstract
class.
4.Within a class we can define class constants.
5.we can use the final keyword to indicate that a method
cannot be overridden by a child

Is This Answer Correct ?    155 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you specify the "new line" character in single-quoted strings?

541


Explain converting an object?

606


What is stripslashes php?

511


What type of comments are supported by PHP.

562


Which is better php praogramming or cad/cam scope wise and also salaray wise?

1574






Is server side a session?

496


What is string and its function?

511


What is difference between mysql_fetch_array and mysql_fetch_assoc?

495


How to connect to a url in php?

516


How do you check if a variable has not been set in php?

510


How to get number of elements in an array?

527


Why overriding is called runtime polymorphism?

522


What is difference between python and php?

512


What are the methods useful for method overloading?

524


How is the comparison of objects done in php?

517