← All docs

fclose()

Closes an open file pointer.

fclose()

function fclose(resource $stream): bool

Closes an open file pointer.

Parameters:

  • $stream (resource)

Returns: bool

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

Internals

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