本文整理匯總了PHP中Iterator::free方法的典型用法代碼示例。如果您正苦於以下問題:PHP Iterator::free方法的具體用法?PHP Iterator::free怎麽用?PHP Iterator::free使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Iterator
的用法示例。
在下文中一共展示了Iterator::free方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: free
/**
* Helper method for PHP version < 5.3, this method can be used to
* unwire the complex object graph created by PHP_Depend, so that the
* garbage collector can free memory consumed by PHP_Depend. Please
* remember that this method will destroy all the data calculated by
* PHP_Depend, so it is unusable after a call to <b>free()</b>.
*
* @return void
* @since 0.9.12
*/
public function free()
{
if (is_object($this->_packages)) {
$this->_packages->free();
}
unset($this->_builder, $this->_packages);
}