← All docs

strrev()

Reverses a string.

strrev()

function strrev(string $string): string

Reverses a string.

Parameters:

  • $string (string)

Returns: string

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

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