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
}
}