PHP Function Reference

PHP streamWrapper stream_eof() Method



The PHP streamWrapper::stream_eof() method checks for end-of-file on a file pointer. This method is called in response to feof() function.

Syntax

public streamWrapper::stream_eof()

Parameters

No parameter is required.

Return Value

Returns true if the read/write position is at the end of the stream and if no more data is available to be read, or false otherwise.


❮ PHP Streams Reference

5