SPL 関数
PHP Manual

iterator_apply

(PHP 5 >= 5.2.0)

iterator_applyApply a user function to every element of an iterator

説明

ReturnType iterator_apply ( Traversable $iterator , callback $function [, array $args ] )

Calls a function for every element in an iterator.

パラメータ

iterator

The class to walk through.

function

The callback function to call on every element.

args

Arguments to pass to the callback function.

返り値

Returns the iteration count.

参考


SPL 関数
PHP Manual