php 有没有好的 php5 OOP 教程站点?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1021552/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there any good php5 OOP tutorial site?
提问by aaa
Is there any good php5OOP tutorial site?
有没有好的php5OOP 教程站点?
I Googled for a while ,and
found that there are all of PHP4OOP
site everywhere.
我用谷歌搜索了一段时间,
发现到处都是PHP4OOP 站点。
回答by Ali
It's not free, but the best resource I found about PHP5 + OO in general is Matt Zandstras PHP Objects, Patterns and Practice.
它不是免费的,但我发现的关于 PHP5 + OO 的最佳资源一般是 Matt Zandstras PHP Objects, Patterns and Practice。
It not only shows you the basics (classes v. objects, inheritance, polymorphism etc, which is where most people stop when learning OO) but it also goes through design patterns which show you how to do OO right.
它不仅向您展示了基础知识(类与对象、继承、多态等,这是大多数人在学习 OO 时停止的地方),而且还通过设计模式向您展示如何正确地执行 OO。
By 'right' I just mean things like coding to an interface, DRY, composition over inheritance etc. Crucially, it goes over basic UML (class and sequence diagrams) which really help to give you a visual understanding of OO. Thoroughly recommended.
我所说的“正确”只是指对接口进行编码、DRY、组合而非继承等。重要的是,它涵盖了基本的 UML(类和序列图),这确实有助于让您对 OO 有一个直观的理解。彻底推荐。
回答by zeroDivisible
There are few places where you can learn about object oriented programming (OOP) in PHP:
很少有地方可以学习 PHP 中的面向对象编程 (OOP):
Presentation on scribd.com contrastin oop in PHP4 vs PHP5(few other presentations are also availible on scribd.com)
scribd.com 上的演示文稿对比 PHP4 与 PHP5 中的 oop(在 scribd.com 上也提供了一些其他演示文稿)
php.net guide about migrattin oop from PHP4 to PHP5
关于从 PHP4 到 PHP5 的迁移 oop 的 php.net 指南
There are also few books, ie: Object-Oriented Programming with PHP5
也有几本书,即: Object-Oriented Programming with PHP5
When you use google you will find many sites about this and if you really want to learn it, just buy and study one of the newer books about oop in php5 - usually they have good information, written with easy language.
当您使用 google 时,您会发现很多关于此的网站,如果您真的想学习它,只需购买并学习一本关于 php5 中的 oop 的新书 - 通常它们有很好的信息,用简单的语言编写。
回答by zeroDivisible
This is a very good tutorial with concepts explained clearly.
http://www.sunilb.com/php/php-tutorials/php-5-tutorial-final-class-and-methods
这是一个很好的教程,其中的概念解释得很清楚。
http://www.sunilb.com/php/php-tutorials/php-5-tutorial-final-class-and-methods
回答by Paul Weber
Here is the official php.net Tutorial/Overview...
这是官方的 php.net 教程/概述...
回答by RichieHindle
There's a PHP 5 OOP Tutorial here.
这里有一个PHP 5 OOP 教程。
"I hope to use these tutorials to introduce to you some of the new features of the PHP 5 object model."
“我希望通过这些教程向您介绍 PHP 5 对象模型的一些新特性。”
回答by Jordizle
I've written some PHP5 tutorials here with example downloads:
我在这里写了一些 PHP5 教程和示例下载:
回答by user2965243
I learned a lot about basics at Codecademy.com
我在Codecademy.com学到了很多基础知识
回答by user2965243
http://www.sysexecutive.com/category/online-tutorials/phpis providing best PHP5 tutorials
http://www.sysexecutive.com/category/online-tutorials/php提供最好的 PHP5 教程
回答by user564930
I found the tutorial on W3Schools to be helpful learning PHP 5 as a beginner: https://www.w3schools.com/php/
我发现 W3Schools 上的教程对初学者学习 PHP 5 很有帮助:https: //www.w3schools.com/php/

