[PHP] Wanting a better understanding of classes in PHP...
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. Chuck PUP Payne Sr. System Administrator GDI Engineering, Inc. 2075-E West Park Place Blvd. Stone Mountain, GA 30087 --- (678) 476-0747 ext. 18 (Phone) (770) 498-1590 (Fax) (404) 451-3579 (Mobile) (800) 631-1371 (Alpha Page) [EMAIL PROTECTED] (Text Pager) [EMAIL PROTECTED] (E-Mail) --- http://www.gdieng.com http://www.gditelecommunication.com http://www.softmeta.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Wanting a better understanding of classes in PHP...
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. Chuck PUP Payne Sr. System Administrator GDI Engineering, Inc. 2075-E West Park Place Blvd. Stone Mountain, GA 30087 --- (678) 476-0747 ext. 18 (Phone) (770) 498-1590 (Fax) (404) 451-3579 (Mobile) (800) 631-1371 (Alpha Page) [EMAIL PROTECTED] (Text Pager) [EMAIL PROTECTED] (E-Mail) --- http://www.gdieng.com http://www.gditelecommunication.com http://www.softmeta.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Wanting a better understanding of classes in PHP...
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 Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Wanting a better understanding of classes in PHP...
Well, start here probably: http://www.php.net/manual/en/language.oop.php -Steve On Friday, April 12, 2002, at 12:50 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. Chuck PUP Payne Sr. System Administrator GDI Engineering, Inc. 2075-E West Park Place Blvd. Stone Mountain, GA 30087 --- (678) 476-0747 ext. 18 (Phone) (770) 498-1590 (Fax) (404) 451-3579 (Mobile) (800) 631-1371 (Alpha Page) [EMAIL PROTECTED] (Text Pager) [EMAIL PROTECTED] (E-Mail) --- http://www.gdieng.com http://www.gditelecommunication.com http://www.softmeta.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Wanting a better understanding of classes in PHP...
I recently finished a great book on OO theory called Beginning Java Objects by Jacquie Barker. It's published by Wrox. The book is a Java book and there are Java code snippets, but it's OO theories will work for all OO languages. Java is C style coding like PHP, so you shouldn't have any problem reading the code. Still the author doesn't presume even basic knowledge of Java. I use this book in my transformation to be a Java developer, it's certainly helped me design better PHP apps. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php