| title | iterator_apply() |
|---|---|
| description | Call a function for every element in an iterator. |
function iterator_apply(traversable $iterator, callable $callback, array $args = null): intCall a function for every element in an iterator.
Parameters:
$iterator(traversable)$callback(callable)$args(array), defaultnull, optional
Returns: int
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
For how iterator_apply is implemented in the compiler, see the internals page.