faqts : Computers : Programming : Languages : PHP : kms : Classes

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

147 of 158 people (93%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

Know of any basic tutorials on PHP Classes and OOP?

Aug 11th, 2004 10:18
Philip Olson,


The first place to look is, of course, the manual:
  PHP 4 OOP
  http://www.php.net/oop
  PHP 5 OOP
  http://www.php.net/oop5
Here are a few basic tutorials on the subject of OOP and Class.  They
all approach the subject of OOP and Classes in PHP a little differently
so it depends on your tastes.  It'll eventually click.
  An Introduction to Classes                                  :
  -------------------------------------------------------------
  http://www.zend.com/zend/tut/class-intro.php
  Another Introduction to Classes, including PHP 5 OOP info   :
  -------------------------------------------------------------
  http://zend.com/php5/abs/php101-7.php
  Taking PHP the OO way                                       :
  -------------------------------------------------------------
  http://www.php-mag.net/itr/online_artikel/show.php3?id=284&nodeid=114
  Introduction to OOP                                         :
  -------------------------------------------------------------
  http://www.devarticles.com/c/a/PHP/Introduction-to-PHP-Classes-OOP/
  PHP Object Oriented Programming                             :
  -------------------------------------------------------------
  http://www.liquidpulse.net/articles/125
  Using objects to create an application                      :
  -------------------------------------------------------------
  http://www.zend.com/zend/tut/tutorial-johnson.php
  http://www.zend.com/zend/tut/tutorial-johnson2.php
  Back to Class                                               :
  -------------------------------------------------------------
  http://www.devshed.com/Server_Side/PHP/BackToClass/
  Accessing Databases with Class                              :
  -------------------------------------------------------------
  http://www.devshed.com/Server_Side/PHP/Class/
  Object Oriented Programming in PHP                          :
  -------------------------------------------------------------
  http://php.vamsi.net/article/3/1
  Introduction to PHP Classes (OOP)                           :
  -------------------------------------------------------------
  http://www.phpfreaks.com/tutorials/48/0.php
  Classes and PHP                                             :
  -------------------------------------------------------------
  http://www.phpbuilder.com/columns/rod19990601.php3
  Introduction to PHP Objects                                 :
  -------------------------------------------------------------
  http://www.onlamp.com/pub/a/php/2002/08/01/php_foundations.html
  OOP Talk : A slide presentation                             :
  -------------------------------------------------------------
  http://www.sdphp.net/talks/talks/sdphp_class
  OOP Design Patterns in PHP : A slide presentation in german :
  -------------------------------------------------------------
  http://www.php-conference.de/2001/slides/bergmann_oopdesignpatterns/
Some information about overusing OOP can be seen here:
  Overusing OO                                                :
  -------------------------------------------------------------
  http://www.zend.com/zend/art/mistake1.php#Heading13
And PHP 5 offers many new OOP features.  For more information of PHP 5,
including words on the Zend Engine 2, read this faqt:
  Where can I get more information about PHP5?
  ------------------------------------------------------------:
  http://www.faqts.com/knowledge_base/view.phtml/aid/22154/fid/1150
Since PEAR is full of classes, you may find some of them useful 
as you learn:
  PEAR                                                        :
  -------------------------------------------------------------
  http://www.faqts.com/knowledge_base/index.phtml/fid/707   
  http://pear.php.net/
And a good general tutorial regarding OOP is the following Java tutorial:
  Lesson: Object-Oriented Programming Concepts                :
  -------------------------------------------------------------
  http://java.sun.com/docs/books/tutorial/java/concepts/