Is PHP Object-oriented?

后端 未结 7 1416
鱼传尺愫
鱼传尺愫 2021-01-30 03:09

Is PHP an object-oriented language? If not, then what about the framework CakePHP? Is it an object-oriented MVC implementation of PHP?

Also, can a PHP application wholly

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 03:55

    Yes, the latest versions of PHP are object oriented. That is, you can write classes yourself, use inheritance, and where appropriate, the built in functionality is built in objects too (like MySQL features).

    There are still a lot of loose functions however, so there might be a disagreement about how object oriented PHP is. I think it is. And yes CakePHP is an object oriented framework.

提交回复
热议问题