(PHP 4, PHP 5, PHP 7)
Reverse a string
string strrev ( string $string )
Returns string
, reversed.
Parameters:
string
The string to be reversed.
Returns:
Returns the reversed string.
Examples:
Reversing a string with strrev()
<?php echo strrev("Hello world!"); // outputs "!dlrow olleH" ?>
Please login to continue.