strrev

(PHP 3, PHP 4, PHP 5)

strrev -- 文字列を逆順にする

説明

string strrev ( string string )

stringを逆順にして返します。

例 1. strrev()で文字列を逆順にする

<?php
echo strrev("Hello world!"); // "!dlrow olleH"を出力
?>