Should I always unset objects after using them? Consider the following code.
foreach ( $items as $item_id )
{
$item = new Item($item_id);
echo $item->name;
unset( $item );
}
Is it advisable to use unset() this way? Are there better techniques to free up memory after using objects?