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

What is an example of a variable?

767


Explain the types of functions for Splitting String?

797


Which php framework is fastest?

727


What are the advantages of using php?

735


What is new keyword in php?

739


Is php easy language to learn?

815


What is inheritance in php with example?

767


What is final class and final method in php?

788


What is the correct syntax of mail() function in php?

784


What is a PHP accelerator?

794


What is abstraction php?

740


Write down the code for save an uploaded file in php.

733


What is get method in java?

734


Why post method is used in php?

864


What are the difference between array_keys() and array_key_exists() in php?

776