what is the dirrence in PHP4 & PHP5 . ?

Answer Posted / leelu

Difference between php4/5

PHP5
----
Strong OOPS support
1) Data Encapsulation (public, private, protect
visibility for member variables and methods)
2) Concepts like Abstraction, Inheritance,
Reflections(reverse engineering APIs)
3) More Magic Functions like __construct, __destruct,
__call, __get, __set
4)Type Hinting (as in C , we can specify the data type
the argument will be taking in function)
5) late static bindings etc..

Is This Answer Correct ?    20 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

729


What is nan value?

701


What is final class and final method in php?

787


What is use of count() function in php?

786


How to enable parsing?

835


What is oops php?

728


What is an associative array?

758


What is the difference between print() and echo()?

810


Is polymorphism inherited?

744


How do you compare strings in java?

718


How to access standard error stream in PHP?

792


Is php pass by reference or value?

765


What is the difference between require_once and require in php?

805


How can image properties be retrieved in php?

749


What is the use of post in php?

722