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

I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?

489


What is encapsulation in php?

563


How long does a php session last for?

571


How to submit form without a submit button.

541


What is str_replace()?

545






How can you make a connection with mysql server using php?

513


Can we override static method?

529


List some sorting functions in php?

549


what is the use of include_once in php?

540


What is env in laravel?

539


How to stop the execution of php script?

533


How to execute a php script from the command line?

564


What is php session id?

532


Is php a strongly typed language?

572


In php how can you jump in to and out of "php mode"?

568