← All docs

ftell()

Returns the current position of the file read/write pointer.

ftell()

function ftell(resource $stream): int

Returns the current position of the file read/write pointer.

Parameters:

  • $stream (resource)

Returns: int

Availability

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

Internals

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