Class instance pointers
| From: | Tim Streater | Date: | Tue, 29 Nov 2011 15:56:00 +0000 |
| Subject: | Class instance pointers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-315873@lists.php.net to get a copy of this message | ||
Is there any benefit to setting a pointer to a class instance to null before returning from a
function? As in:
function myfunc ()
{
$p = new myclass ();
// do stuff
$p = null;
}
Thanks.
--
Cheers -- Tim