Freelance PHP programmer India | Freelance web developer india | Web development India | web developer CV india | Compiling PHP and Apache 2 from source on Linux
SPL Functions
PHP Manual

iterator_apply

(PHP 5 >= 5.2.0)

iterator_applyApply a user function to every element of an iterator

Description

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

Calls a function for every element in an iterator.

Parameters

iterator

The class to walk through.

function

The callback function to call on every element.

args

Arguments to pass to the callback function.

Return Values

Returns the iteration count.

See Also


SPL Functions
PHP Manual