|
iterator_applyCall a function for every element in an iterator Description
int iterator_apply
( Traversable
$iterator
, callable $function
[, array $args
] )Calls a function for every element in an iterator. Parameters
Return ValuesReturns the iteration count. Examples
Example #1 iterator_apply example
<?php The above example will output: APPLES BANANAS CHERRIES See Also
|