Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > Use of Objects in PHP
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 3rd July 16:32
nagib_php
External User
 
Posts: 1
Default Use of Objects in PHP



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.

Thx

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
  Reply With Quote


 


2 3rd July 16:32
robert
External User
 
Posts: 1
Default Use of Objects in PHP



- 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. |
`------------------------------------------------------------'
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666