PHP 8.3.4 Released!

streamWrapper::stream_eof

(PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8)

streamWrapper::stream_eofComprueba si un puntero a un archivo está en el final del archivo (EOF)

Descripción

public streamWrapper::stream_eof(): bool

Este método es llamado en respuesta a feof().

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Debería devolver true si la posición de lectura/escritura está al final del flujo y no hay más información disponible para leer, o de otro modo false.

Notas

Advertencia

Al leer un fichero entero (por ejemplo, con file_get_contents()), PHP llamará a streamWrapper::stream_read() seguido de streamWrapper::stream_eof() en un bucle, pero siempre y cuando streamWrapper::stream_read() devuelva un texto no vacío, el valor que devuelva streamWrapper::stream_eof() será ignorado.

Ver también

  • feof() - Comprueba si el puntero a un archivo está al final del archivo

add a note

User Contributed Notes

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