strrev
(PHP 4, PHP 5)
strrev — Reverse a string
說明
string strrev
( string $string
)
Returns string , reversed.
參數
- string
-
The string to be reversed.
Return值
Returns the reversed string.
範例
Example#1 Reversing a string with strrev()
<?php
echo strrev("Hello world!"); // outputs "!dlrow olleH"
?>