Location: PHPKode > scripts > phpCookBook > phpcookbook/includes/inc.funcs.php
<?php
/*
phpCookBook functions
http://phpcookbook.sourceforge.net
Copyright (c)2002 Floris Barthel <hide@address.com>

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
included LICENCE file for more details.
*/
/* an object destructor. Will call the destroy() method for the supplied object
and will return it's value. It will then remove the object from memory.
@param string $object
*/

function destroy($object)
{
	global ${$object};
	$return = ${$object}->destroy();
	unset($GLOBALS[$object]);
	return $return;
}
?>
Return current item: phpCookBook