← All built-ins / strrev()

strrev()

strrev(string $s): string

Parameters

NameTypeDescription
$sstringinput string

Return value

The string reversed byte by byte.

Example

echo strrev("holy");
yloh

See also

str_shuffle()