略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Generator::next

2024-04-28

Generator::next

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

Generator::next生成器继续执行

说明

public Generator::next(): void

调用 Generator::next() 与以 null 作为参数调用 Generator::send() 具有同样的效果。

参数

此函数没有参数。

返回值

没有返回值。

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/generator.next.php

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