← All docs

fgetc()

Gets a character from the given file pointer.

fgetc()

function fgetc(resource $stream): mixed

Gets a character from the given file pointer.

Parameters:

  • $stream (resource)

Returns: mixed

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

Internals

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