RE: [PHP] Object oriented Programming
| From: | Leonard Burton | Date: | Wed, 05 Feb 2003 15:25:20 +0000 |
| Subject: | RE: [PHP] Object oriented Programming | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134427@lists.php.net to get a copy of this message | ||
Creating functions is a real easy part of programming. Classes are a
differect story (or at least at first). Anyway, If I were you, I would get
Professional PHP4 by Wrox and read the OOP section. I would first start
writting functions.
Think if it like this, if you use exact code twice (you cut and paste it)
write a function. If you use code that is ninety or eighty percent similar
make a function. Figure out how to do that and then worry about classes.
The problem with books on classes are that they tell you how/when to use a
lightswitch but they dont tell you how to turn it on. I have been thinking
about writing an article about how to turn the figurative light switch on
when it comes to classes.
Have you been writting functions?
Cheers!
Leonard.
-----Original Message-----
From: Sascha Braun [mailto:saschabraun@gmx.de]
Sent: Wednesday, February 05, 2003 3:22 AM
To: PHP General list
Subject: [PHP] Object oriented Programming
Hi,
I need a basic Tutorial on how to write objectoriented Scripts in PHP,
like classes and functions I can use at many places.
If there is something like that, please tell me where I can find it (Book
or Web).
Thank Ya'll
Sascha