字符串格式化函数 2020/12/3 | 博客 | 评论(0) | 阅读(28) <?php //trim()函数:默认功能为去除字符串首尾处的空格(或其它字符),返回一个人新的字符串; $str=" hello world! "; echo "\$str的长度为---".strlen($str)."<br>"; $nstr=trim($str); &n...