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 abstract class in php?

687


What is php trait?

727


What is session expiry?

718


How to create an empty array in php?

831


What is the integer?

802


What is difference between php and wordpress?

716


What is htaccess? Why do we use this and where?

714


With a heredoc syntax, do I get variable substitution inside the heredoc contents?

855


What is the difference between array_map () and array_shift ()?

717


The left association operator % is used in PHP for?

775


What are encryption functions in php?

796


Is php still used?

698


Is empty in excel?

725


Tell me what is the difference between characters 34 and x34?

752


What is the use of header() function in php?

750