← All docs

fgets()

Gets line from file pointer.

fgets()

function fgets(resource $stream): mixed

Gets line from file pointer.

Parameters:

  • $stream (resource)

Returns: mixed

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

Internals

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