strrev

(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"
?>

doc_php
2016-02-24 16:12:38
Comments
Leave a Comment

Please login to continue.