我的 PHP 代码是面向对象的吗? [英] Is my PHP code object oriented?

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

问题描述

如果我在单独的 PHP 文件中编写了将我连接到 MySQL 数据库的 PHP 代码,并在我网站的必要页面上提出了要求,那么 DB Connent PHP 文件是否是面向对象的项目?

If I made my PHP code which would connect me to my MySQL database in a separate PHP file and made a require on the necessary pages of my website would the DB Connent PHP file be an Object Orentated item ?

推荐答案

Oliver,看看这个 link 关于面向对象的 PHP.它会给你一个基本的介绍,然后你可以确定你的代码是否确实是面向对象的.

Oliver, Check out this link about object oriented PHP. It will give you a basic intro and then you can determine if indeed your code is object oriented.

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

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