← All docs

feof()

Tests for end-of-file on a file pointer.

feof()

function feof(resource $stream): bool

Tests for end-of-file on a file pointer.

Parameters:

  • $stream (resource)

Returns: bool

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how feof is implemented in the compiler, see the internals page.