← All docs

strrev()

Reverses a string.

strrev()

function strrev(string $string): string

Reverses a string.

Parameters:

  • $string (string)

Returns: string

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

Internals

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