update page now
PHP 8.1.34 Released!

CallbackFilterIterator::__construct

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

CallbackFilterIterator::__constructCrear un iterador filtrado desde otro iterador

Descripción

public CallbackFilterIterator::__construct(Iterator $iterator, callable $callback)

Crea un iterador filtrado usando callback (llamada de retorno) Creates a filtered iterator using the callback para determinar que elementos van a ser aceptados o rechazados.

Parámetros

iterator

El iterador a ser filtrado.

callback

La llamada de retorno, debe devolver true para aceptar el elemento actual o en caso contrario false. Véase los Ejemplos.

Puede ser cualquier valor válido de callback.

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant