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 break and continue while loop in php?

571


How to add 301 redirects in PHP?

553


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

584


Write syntax to open a file in php?

610


"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.

1619






What does php exit do?

615


What is reference variable php?

581


What is the best way to avoid email sent through php getting into the spam folder?

639


Can I use node js with php?

600


What software is required for php?

663


What are traits?

788


What are the popular content management systems (cms) in php?

558


What is Type hinting in PHP?

789


Which function is used in php to search a particular value in an array?

596


What are the disadvantages of php?

589