note 57940 deleted from language.oop5.patterns by nlopess

From: Date: Wed, 19 Oct 2005 17:34:57 +0000
Subject: note 57940 deleted from language.oop5.patterns by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97240@lists.php.net to get a copy of this message
Note Submitter: Joel ---- How do I make an instance of a singleton class in a factory function? This won't work of course: return new $dbtype(); This won't work too: return new $dbtype::singleton(); Please help me out here...

« previous php.notes (#97240) next »