CakeFest 2024: The Official CakePHP Conference

Iterator::rewind

(PHP 5, PHP 7, PHP 8)

Iterator::rewindRebobine la Iterator al primer elemento

Descripción

public Iterator::rewind(): void

Rebobina de nuevo al primer elemento de la Iterator.

Nota:

Este es el primer método llamado cuando se inicia un foreach bucle. No va a ser ejecutado despues foreach bucle.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Cualquier valor devuelto se pasa por alto.

add a note

User Contributed Notes 1 note

up
16
al
8 years ago
Builtin PHP function is »reset«.

Don't mix this with builtin function »rewind« which operates on file handle.
To Top