Forum Moderators: coopster
What I want to do is this:
$foo = new moof("one");
$baa = new moof("two");
list_objects_of_type(moof); // outputs references to $foo and $baa in array
I need some way of doing what my made up function (list_objects_of_type) does.
My current solution is to use a static class variable array that appends a reference to $this in the constructor, and scrubs it in the destructor.
My solution works great, but I thought maybe there was a 'proper' way to it.