Re: Use of Objects in PHP
| From: | Robert Cummings | Date: | Fri, 17 Oct 2003 06:18:13 +0000 |
| Subject: | Re: Use of Objects in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166419@lists.php.net to get a copy of this message | ||
On Fri, 2003-10-17 at 01:43, Nagib Abi Fadel wrote:
> Hi,
> i have been using php for 1 year till now, and i never
> felt the need to use an object.
>
> Can some one tell me where and why should i use the
> object oriented coding in PHP ?
> I meen i have been able to do all the things i want
> without using any object (I know that objects could
> make my code more structured).
> I have read the php docs, there's no inheritance (as
> far as i've read) ...
>
> I would really appreciate any advice.
- There is inheritance.
- There is polymorphism
- There is encapsulation
These things are often a matter of preference and can to some degree or
another be cooked without objects, albeit not as elegantly.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'