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 php key?

502


Tell me how comfortable are you with writing html entirely by hand?

501


What is a php certification?

493


Can we override magic methods in php?

534


Write an example to remove html tags from a string in php?

517






Tell me how is it possible to propagate a session id?

599


What are the different components used in php for formatting?

529


How to add 301 redirects in PHP?

474


Will a comparison of an integer 12 and a string "13" work in php?

535


What is the scope of a variable defined in a function?

552


Whether php supports microsoft sql server?

550


What is the array in php?

553


What is PECL?

775


What is url encoding and decoding in php?

552


What is difference between array_merge and array_combine?

517