PHP strrev () function
Examples
Reverse the string "Hello World!":
<?php
echo strrev("Hello World!");
?>
echo strrev("Hello World!");
?>
Running instance »
Definition and Usage
strrev () function reversed string.
grammar
strrev( string )
参数 | 描述 |
---|---|
string | 必需。规定要反转的字符串。 |
technical details
return value: | Returns reversed string. |
---|---|
PHP version: | 4+ |
PHP String Reference