Is it OK to assign an object by reference to an array? Here's what I'm
doing (cut down to the bone):
class small_object {
function name() {
}
}
class big_object {
var $smalls;
function add_small($small_name, &$new_small) {
$smalls[$small_name] = $new_small;
}
}
$biggy = new big_object;
$biggy->add_small("first", new small_object);
Now, I know that works fine but what I'm asking is would
$smalls[$small_name] =& $new_small;
cause any problems?