Back To Class (
Page 1 of 9 )
Classes and objects are powerful OOP concepts - and PHP4 supports
them too. This article explains some basic OO entities (including classes,
constructors and extensibility) with examples of a table builder and a
guestbook.
If you've been programming for a while, you've probably heard the term OOP
before - it stands for Object-Oriented Programming, and refers to a technique in
which you create program "objects" and then use these objects to build the
functionality you need into your program. And maybe you've wondered just how
useful this is, and how you could go about adding this capability to your own
code.
Well, wonder no more. Your prayers have been answered.
Over
the next few pages, this article is going to take a look at OOP in PHP4, with an
explanation of PHP4 classes and a few examples of how you could use
them.