foreach
このような参照は、unset を使って破棄することが推奨されています。
unset
詳しくは、foreach (php.net) and unset (php.net) を参照してください。