(PHP 7, PHP 8)
Generator::getReturn — Get the return value of a generator
This function has no parameters.
Returns the generator's return value once it has finished executing.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/generator.getreturn.php