12/3/2013 5:11:19 AM

PHP

PHP constructors and destructors.

*Two constructors are shown but only one is allowed in PHP (booooo!!!!)

class MyClass { function __construct() { //initialize things } function __construct($someSetting) { //initialize things $this->LocalVariable = $someSetting; } function __destruct() { //destroy things } }