eof() публичный Метод

Returns true if the stream is at the end of the stream.
public eof ( ) : boolean
Результат boolean
Пример #1
0
 public function testChecksEof()
 {
     $handle = fopen('php://temp', 'w+');
     $stream = new Stream($handle);
     fwrite($handle, 'data');
     $this->assertFalse($stream->eof());
     $stream->read(4);
     $this->assertTrue($stream->eof());
 }