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