A bit of an explanation to the answers above.
After unset($row)
the variable $row
is unset. That does not mean the data in $row
is removed; the list also has an element pointing to $row
.
It helps to think of variables as labels. A piece of data can have one or more labels, and unset
removes that label but does not touch the actual data. If all labels are removed the data is automatically deleted.