creating a constructor
Posted: Fri May 23, 2008 6:17 pm
Hi, I am having trouble creating a constructor.
The following constructor yields an error message: "Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /home/flowingb/public_html/admin/login_code.inc on line 13"
Line 13 happens to be function__construct()
class myclass
{
private $balance;
function__construct()
{
$this->balance = 100;
}
}
Thanks, cmartin19
The following constructor yields an error message: "Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /home/flowingb/public_html/admin/login_code.inc on line 13"
Line 13 happens to be function__construct()
class myclass
{
private $balance;
function__construct()
{
$this->balance = 100;
}
}
Thanks, cmartin19