(PHP 4, PHP 5, PHP 7, PHP 8)
strrev — 反轉字符串
$string
返回 string 反轉后的字符串。
string
待反轉的原始字符串。
返回反轉后的字符串。
示例 #1 使用 strrev() 反轉字符串
<?phpecho strrev("Hello world!"); // 輸出 "!dlrow olleH"?>