Re: Object oriented??
| From: | JJ Harrison | Date: | Fri, 26 Jul 2002 09:05:49 +0000 |
| Subject: | Re: Object oriented?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109686@lists.php.net to get a copy of this message | ||
I don't use OO in PHP.
instead I organise functions into files. ie functions for validating user
input would go into validate.input.func.php.
I then have a single require(or include) called required.php this way I can
add 'modules' of code eaisly. To me it seems the same as OO but a little bit
faster(in PHP)
--
JJ Harrison
webmaster@tececo.com
www.tececo.com
"Mike Mannakee" <mike@basementideas.com> wrote in message
news:20020726041651.44568.qmail@pb1.pair.com...
> I'm curious how the OOP features are viewed in PHP. I'm originally a C++
> guy, and took to PHP because of the similarity. In C++ one wouldn't think
> of not using OOP principles, but frankly I cannot really figure out why
one
> would go to OOP methods in PHP. It's not a true OOP implementation,
though
> for web stuff it's probably close enough. I've written nothing but
> traditional code in PHP and like it that way. How common is this? Do
most
> people write OOP or traditional linear code in PHP?
>
> Mike
>
>