Difference AND Benefits OF OOP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Naeem
Forum Commoner
Posts: 31
Joined: Tue Jul 07, 2009 12:48 pm

Difference AND Benefits OF OOP

Post by Naeem »

Assalam-O-Walaikum
Hello to all friends,
I want to know that what's the Difference AND Benefits of OOP in PHP.
Thanks,
Allah Hafiz.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Difference AND Benefits OF OOP

Post by requinix »

How about a trade?

You explain the benefits of search engines and I'll explain the benefits of OOP.
Naeem
Forum Commoner
Posts: 31
Joined: Tue Jul 07, 2009 12:48 pm

Re: Difference AND Benefits OF OOP

Post by Naeem »

Please some one tell me?
I can't find this question in search engines.
So i asked here.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Difference AND Benefits OF OOP

Post by requinix »

Naeem wrote:I can't find this question in search engines.
No, see, you should be looking for answers, not questions.

Such as these.
webmonkey88
Forum Newbie
Posts: 20
Joined: Fri Aug 14, 2009 4:30 am

Re: Difference AND Benefits OF OOP

Post by webmonkey88 »

lol people seem to want everything handed to them on a plate
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Difference AND Benefits OF OOP

Post by jackpf »

Basically, objects let you group similiar functions that use the same resources. That way you don't have to make global resources and stuff, which could get overwritten etc....

But mainly people just use it because they think it's cool ;)

And yes, use google.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Difference AND Benefits OF OOP

Post by Christopher »

Naeem wrote:I want to know that what's the Difference AND Benefits of OOP in PHP.
Perhaps you did not realize it, but you asked a question that has a very long answer. And much of the answer you cannot understand without prior experience. So it is not really answerable (except in a very general way) to someone who does not know the differences already.
(#10850)
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: Difference AND Benefits OF OOP

Post by yacahuma »

the benefits of oop in php are the same as they are in any language.

http://wiki.tcl.tk/13398
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Difference AND Benefits OF OOP

Post by aceconcepts »

I think the best and most effective way of understanding the benefits of OOP is to start practising it. You can read as much as you like describing how it works and how it's so wonderful but you will never really grasp the full benefit of this technique until you start using it yourself.
Post Reply