Is PHP is procedure oriented or object oriented?

Answer Posted / uttam thakor

PHP is Both Procedure oriented and Object Oriented.

We have the choice of using procedural programming or object
oriented programming, or a mixture of them.
Although not every standard OOP feature is implemented in
PHP 4, many code libraries and large applications (including
the PEAR library) are written only using OOP code.
PHP 5 fixes the OOP related weaknesses of PHP 4, and
introduces a complete object model.

Thanks.

Is This Answer Correct ?    38 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mysqli_fetch_array?

523


What is in php 7?

567


Explain me what is the importance of "method" attribute in a html form?

516


What is cookies? How to create cookies in php?

527


How can we encrypt the password using php?

558






How to return a value back to the function caller?

562


What is the meaning of die in php?

537


What is the difference between for and foreach in php?

502


How can we access the data sent through the url with the post method?

515


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

483


Is gender a dependent variable?

514


Which is best framework for php?

567


How do you parse and process html/xml in php?

556


How can we change the maximum size of the files to be uploaded?

516


What are new features in php 7?

560