Corey_M wrote:Surely there must be a way to "get all objects" instantiated from the original class?
I do not think so, but you can write the class such that it keeps track of its instances, much like how a singleton keeps track of its single instance. One of the ideas is to have a static member variable that is an array of the class instances, and to only allow instances to be created via a static member function that updates this static member variable (i.e., you declare the constructor to be private).
However, do you really need to "display all the instances and their contents without knowing how many there are, or anything but the class name"?
EDIT:
By the way, you might not need a static member function to create objects. The constructor could be made public and yet add the new object ($this) to the static member array.