本文整理汇总了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);
}