← All docs

fseek()

Seeks on a file pointer.

fseek()

function fseek(resource $stream, int $offset, int $whence = 0): int

Seeks on a file pointer.

Parameters:

  • $stream (resource)
  • $offset (int)
  • $whence (int), default 0, optional

Returns: int

Availability

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

Internals

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