note 35093 deleted from ref.classobj by victor
| From: | victor@php.net | Date: | Fri, 19 Aug 2005 19:49:10 +0000 |
| Subject: | note 35093 deleted from ref.classobj by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93921@lists.php.net to get a copy of this message | ||
Note Submitter: pixellent at stodge dot net
----
In case you were wondering, you can't do the following in PHP:
$name = wsConfig::GetInstance()->GetValue("name");
It causes a parse error, I think due to trying to call GetValue. And yes I do have a function called
GetValue in my wsConfig class.
This is my singleton:
function &GetInstance()
{
static $Instance;
if (!isset($Instance))
{
$Instance = new wsConfig();
}
return $Instance;
}