Possible Duplicate:
Get all instances of a class in PHP
If I have a class and create a number of instances of that class, is there a way for me to retrieve a full list of those instances via PHP? I'm using PHP 5.3.6.
Possible Duplicate:
Get all instances of a class in PHP
If I have a class and create a number of instances of that class, is there a way for me to retrieve a full list of those instances via PHP? I'm using PHP 5.3.6.
No, you can't do it. You can build factory class for creation objects and store them in static array.