简单教程
提交运行
代码编辑器:
<?php $str = "Hello World! "; echo "Without rtrim: " . $str; echo "<br>"; echo "With rtrim: " . rtrim($str);
运行结果: