SPL 함수 목록
PHP Manual

iterator_apply

(PHP 5 >= 5.1.0)

iterator_applyApply a user function to every element of an iterator

설명

int 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