Why Use PHP OOP over Basic Functions and When?

Posted by Codex73 on Stack Overflow See other posts from Stack Overflow or by Codex73
Published on 2009-04-04T03:00:23Z Indexed on 2010/04/27 2:33 UTC
Read the original article Hit count: 346

Filed under:
|
|
|

There are some posts about this matter, but I didn't clearly get when to use Object Oriented coding and when to use programmatic functions in an include. Somebody also mentioned to me that OOP is very heavy to run, and makes more workload. Is this right?

Lets say I have a big file with 50 functions, why will I want to call these in a class? and not by function_name(). Should I switch and create object which holds all of my functions? What will be the advantage or specific difference? What benefits does it bring to code OOP in php ? Modularity?

© Stack Overflow or respective owner

Related posts about php

Related posts about oop