String 函数
PHP 手册

strrev

(PHP 4, PHP 5)

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


String 函数
PHP 手册