PHP Don't allow object to instantiate more than once
问题 I have an abstract class that is inherited by a number of other classes. I'd like to have it so that instead of re-instantiating (__construct()) the same class each time, to have it only initialize once, and utilize the properties of the previously inherited classes. I'm using this in my construct: function __construct() { self::$_instance =& $this; if (!empty(self::$_instance)) { foreach (self::$_instance as $key => $class) { $this->$key = $class; } } } This works - sort of, I'm able to get