On Friday, April 12, 2002, at 01:49  PM, Chuck "PUP" Payne wrote:

> Hi, I was up on freshmeat and I saw a TON of php classes. I like to 
> know how
> can I use them? And is a class a bit of code that you are always using? 
> If
> so, how can I create my own classes.

A class is a definition for an object.  You can use classes with PHP to 
write object-oriented code.  But each class has its own interface, so I 
couldn't tell you how to use all classes -- and you can of course write 
your own, which you will no doubt do if you learn how to use PHP's 
object-oriented features.

If you are already comfortable with object-oriented programming, all you 
have to do is read the object-oriented programming pages in the PHP 
manual:  http://www.php.net/manual/en/language.oop.php

If you have never used object-oriented programming, it's not that hard, 
but you should have a better introduction to the theory.  I haven't seen 
many good introductions to OOP for PHP, but the theory applies to all 
object-oriented programming languages.  I am reading Bruce Eckels' 
online book "Thinking in Java", and have found that it's got a good 
introduction to the theory.

I've attached the first chapter of the book (in HTML) to this message -- 
you will get it, but the list won't since the mailing list doesn't 
forward attachments.  If you're interested, the book is freely available 
at http://www.mindview.com .

Once you've read a bit more about it, read the PHP manual pages on OOP 
and try it out.



Erik Price
Web Developer Temp
Media Lab, H.H. Brown

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

Reply via email to