downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

streamWrapper::stream_flush> <streamWrapper::stream_close
[edit] Last updated: Fri, 24 May 2013

view this page in

streamWrapper::stream_eof

(PHP 4 >= 4.3.2, PHP 5)

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

Descripción

public bool streamWrapper::stream_eof ( void )

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 add a note User Contributed Notes streamWrapper::stream_eof - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites