So I have been searching for a while and cannot find the answer to a simple question. Is it possible to have an array of objects in PHP? Such as:
$ar=array()
Arrays can hold pointers so when I want an array of objects I do that.
$a = array(); $o = new Whatever_Class(); $a[] = &$o; print_r($a);
This will show that the object is referenced and accessible through the array.