PHP OOP 入门

发布于 2024-10-31 16:07:56 字数 220 浏览 1 评论 0原文

我一直“害怕”OOP,当我在大学使用基于 java 的语言(称为“Processing”)中的类时,我了解类、函数和构造函数。

然而,我不确定如何在我使用的代码中采用 OOP,有人可以指导我一些好的教程,我可以在那里学习它。我对 Web 技术非常感兴趣,并且总是使用 PHP 进行后端处理,但我也想提高我对它的知识,因为我相信我正处于可以进步到更高级的东西的阶段......例如 OOP。

谢谢

I have always been "scared" of OOP, i understand the classes, functions and constructors as I use classes in a java based language called Processing at University.

However, I am unsure how to go about adopting OOP into the code I use, could someone please direct me to a good some good tutorials where I can learn about it. I'm really interested in web technologies and always use PHP for backend processing but I would like to also improve my knowledge of it as I belive I am at the stage where I can progress to more advanced things... such as OOP.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

冷心人i 2024-11-07 16:07:56

我将首先查看 PHP 手册OOP 页面。然后也许可以考虑研究设计模式

I would start with reviewing the PHP manuals pages on OOP. Then maybe consider investigating design patterns.

不疑不惑不回忆 2024-11-07 16:07:56

我可以推荐这本书:

PHP 对象和模式

PHP 面向对象解决方案

您也可以投资一些优秀的视频教程,例如 lynda.com 的 PHP Beyond Basics:

PHP 超越基础知识

I could recommend this books:

PHP Objects and Patterns

PHP Object-Oriented Solutions

also you can invest in some good video tutorials like lynda.com's PHP Beyond Basics:

PHP Beyond Basics

遇见了你 2024-11-07 16:07:56

如果您了解 OOP 的基础知识,那么您就可以开始学习设计模式了。 O'Reilly 的《Head First Design Patterns》之类的书可以帮助您入门。

If you understand the basics of OOP, you are at the point to start learning about design patterns. A book like "Head First Design Patterns" from O'Reilly, will get you started.

爱冒险 2024-11-07 16:07:56

与任何语言一样,熟悉设计模式很重要。有些非常实用,经常用于解决和处理典型问题。

尽管您可以轻松搜索“php 设计模式”,这个 隐藏了一些经常使用的基本模式。

除了上述之外,我只想说,你必须开始使用OOP!我相信经验是学习 OOP 以及在每种情况下正确使用它的一个非常非常重要的方面。

As in any language it's important to get familiar with design patterns. Some are very practical and are used constantly to tackle and approach typical problems.

Although you could do an easy search on "php design patterns", this one coverts some basic patterns which are used often.

Besides the above, I'd just like to say that you have to start using OOP! I believe that experience is a very, very important aspect of learning OOP, and to use it correctly in every situation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文