anders thoresson wrote:

I'm just about to take the first step into OOP with PHP. I've searched the web for tutorials, and even if there are alot, most of them use metaphores with houses or cars or other real life things to explain what classes and methods are.

http://pear.php.net http://www.phpclasses.org

Both of these have excellent scripts that are OOP based.

I wonder if someone can point me to tutorials that uses real PHP examples instead, examples that shows me in a direct way how to use OOP. My biggest trouble right now is what should be the classes and what should be the methods.

As a general rule, a class is anything that can be an /object/ or a /thing/. Methods are things you can do to it.


Also, I wonder if someone could name a blog-application och web album-application that uses OOP in a good way and which I can have a look at to see how things are done.

A good OOP application for community websites is Drupal - www.drupal.org


--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to