Fork me on GitHub
RSS
 

Posts Tagged ‘classes’

PHP Class Tutorial – Part 3 – What Are Class Constructors?

28 Sep

So just what are class constructors, and how can they be used within PHP classes / OOP programming? When a PHP class is first called, the class will automatically run the class constructor function, which can help automatically configure the class. This can be useful if you need to preset some instance variables, sessions or cookies – prior to using the class methods.
Read the rest of this entry »

 
34 Comments

Posted in PHP

 

PHP Class Tutorial

09 Feb

Easy to follow PHP class tutorial (which is Object Orientated Programming – OOP). I’m not sure how to start this one… It can be quite difficult to understand PHP classes at first, but hopefully I’ll make everything seem easy! Let’s just get stuck in shall we…

Read the rest of this entry »

 
41 Comments

Posted in PHP