← All docs

fstat()

Gets information about a file using an open file pointer.

fstat()

function fstat(resource $stream): mixed

Gets information about a file using an open file pointer.

Parameters:

  • $stream (resource)

Returns: mixed

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

Internals

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