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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, you can’t do it. You can build factory class for creation objects and store them in static array.