总有人间一两风,填我十万八千梦

PHP gc_collect_cycles 用法 手册 | 示例代码

PHP开发手册 归档 457℃ 0评论

gc_collect_cycles

(PHP 5 >= 5.3.0, PHP 7)

gc_collect_cycles强制收集所有现存的垃圾循环周期

说明

gc_collect_cycles ( void ) : int

强制收集所有现存的垃圾循环周期。

参数

此函数没有参数。

返回值

返回收集的循环数量。

用户贡献的笔记

Mason

(Since this function wasn't documented as of the date I left this note...)

If you came here looking for documentation, allow me to point you instead to a section in the user manual about garbage collection that includes a bit at the end about when you would use this feature and what it will actually do: http://php.net/manual/en/features.gc.collecting-cycles.php

Hope it helps!

转载请注明:悠然品鉴 » PHP gc_collect_cycles 用法 手册 | 示例代码

喜欢 (0)or分享 (0)
发表我的评论
取消评论

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址