略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: gc_collect_cycles

2024-04-27

gc_collect_cycles

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

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

说明

gc_collect_cycles(): int

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

参数

此函数没有参数。

返回值

返回收集的循环数量。

add a noteadd a note

User Contributed Notes 1 note

up
146
Mason
10 years ago
(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!

官方地址:https://www.php.net/manual/en/function.gc-collect-cycles.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3