开发者

Good resources for learning advanced OOP features in PHP 5? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I'm familiar with advanced OOP features like interfaces, abstractions, enums, generics, public , private , static keywords, exceptions, etc from Java. However, I'd like to know how all these things translate to PHP.

Specifically I'd like one tutorial or website which goes through all the advanced OOP features of PHP which were added in PHP 5 (I'm mostly familiar with everything from PHP 4) and also things which aren't directly related to OOP l开发者_JAVA技巧ike the throw keyword and the try/catch blocks. Any suggestions?


There's a decent and free e-book called "PHP 5 Power Programming" (~5 MiB PDF) that I would recommend. It goes into the more advanced aspects of OOP in PHP and explains some common design patterns.


Assuming you haven't been there already, the php.net documentation is pretty good. Here is the section on PHP5's objects. There also is a section on migrating from PHP4 to PHP5.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜