Good resources for learning advanced OOP features in PHP 5? [closed]
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.
精彩评论