So $array is an array of which all elements are references.
I want to append this array to another array called $results (in a loop), but since they are references, PHP copies the references and $results is full of identical elements.
So far, the best working solution is:
$results[] = unserialize(serialize($array));
which I fear to be incredibly inefficient. Is there a better way to do this?