My class has a member variable array, items. Periodically I reassign the array to be the value of another, temporary array, like this:
$temp = array();
$temp[] = new Object();
$temp[] = new Object();
$temp[] = new Object();
... etc.
$this->items = $temp;
So, could I have a memory leak? By reassigning the value of $this->temp to a new value, $temp, would all the items (the items are objects) originally in $this->temp still linger around, or would they be freed?