← All docs

strlen()

Returns the length of a string.

strlen()

function strlen(string $string): int

Returns the length of a string.

Parameters:

  • $string (string)

Returns: int

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

Internals

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