php去除字符串左右空格

1 $str = "Hello World!";
2 echo $str . "<br>";
3 echo trim($str," ");
原文地址:https://www.cnblogs.com/leiqi/p/12696405.html