代码示例:(标识:demo_php_string_reverse)
<!DOCTYPE html>
<html>
<body>

<?php
echo strrev("Hello world!");
?> 
 
</body>
</html>
运行结果: