阅读背景:

为什么面向对象的PHP要比程序方法好?

来源:互联网 

I have been using the procedural approach with mysql* until recently. Now I want to shift to mysqli and object oriented approach. Many online resources and books state that OOP is better than procedural even in case of PHP. After going through some online tutorials, I have written a small program that connects to the database and selects a value. I want to know why the object oriented approach is better? Plus is this the right way to code an OO php web page?I have been using the procedural approach with




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: