Search found 3 matches
- Mon Sep 12, 2005 6:39 pm
- Forum: PHP - Theory and Design
- Topic: Classes or Functions, that is the question?
- Replies: 85
- Views: 31205
Global $response;
I am a self-taught PHP programmer (I use the term loosely as some may be offended by that terminology). I started writing simple form handlers and very basic PHP/mySQL stuff. Then I wrote a shopping cart (3 generations over about a year) that is actually really solid and now I'm writing a customer m...
- Sun Sep 11, 2005 2:58 pm
- Forum: PHP - Theory and Design
- Topic: Classes or Functions, that is the question?
- Replies: 85
- Views: 31205
Thanks
This is something that I've put off for a while, because I've never known how to use classes. I am frustrated with the lack of organization and 'spagetti' tendencies in my code as projects get bigger. Thank you both for your replies. Roja, I appreciate your candid explanation. That is exactly what I...
- Sun Sep 11, 2005 1:33 pm
- Forum: PHP - Theory and Design
- Topic: Classes or Functions, that is the question?
- Replies: 85
- Views: 31205
Classes or Functions, that is the question?
I have read enough to know that classes are more powerful than functions alone, but it seems like functions alone are quicker and require less code to use. I am at the point where I now want to make my code modular in order to use the same functions in many projects. Everyone says that "classes...