是PHP面向对象的吗? [英] Is PHP Object-oriented?

查看:115
本文介绍了是PHP面向对象的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PHP是一种面向对象的语言吗?如果不是,那么该框架CakePHP呢?它是一个PHP的面向对象的MVC实现?

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

此外,使用类完全构建的PHP应用程序可以被称为<

Also, can a PHP application wholly built using classes be called object-oriented?

推荐答案

是的,最新版本的PHP是面向对象的。也就是说,你可以自己编写类,使用继承,在适当的地方,内置的功能也是内置的对象(如MySQL功能)。

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).

仍然有很多松散的函数,所以对于面向对象的PHP可能存在不同意见。我觉得是这样的。是的,CakePHP是一个面向对象的框架。

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.

这篇关于是PHP面向对象的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆