Thread: PHP Classes
View Single Post
Old 01-16-2016, 08:43 AM  
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
There are two ways of doing PHP:
- the old way (basically php3/php4) where no classes are used and everything is basically in functions and you just call them when you need them
- the new way (OOP in php5/php6) and it's mostly used in combination with various MVC frameworks (CodeIgniter, Yii, phpFuel, Cake, Angular) and this is very useful when: you will need to reuse the part of the code, when several people work on same project, when someone doesn't have to read all your functions before it can start some coding etc...

Don't make me wrong, classes in php aren't new, but lately their use in projects increased as language developed and people wanted to fully move to OOP.

Here's one useful php link: PHP: The Right Way
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote