strrev
(PHP 4, PHP 5)
strrev — Reverse a string
说明
string strrev
( string $string
)
Returns string
, reversed.
参数
-
string
-
The string to be reversed.
返回值
Returns the reversed string.
范例
Example#1 Reversing a string with strrev()
<?php
echo strrev("Hello world!"); // outputs "!dlrow olleH"
?>