摘要: 字符串处理 清除空格: ltrim($str) :清除左边空格 rtrim($str) :清除右边空格 trim($str):清除字符串左右空格 nl2br():将换行符换成''; $str1 = "this is a \n this is B"; echo nl2br($str1); //this 阅读全文
posted @ 2017-09-03 14:44 rainbow8590 阅读(101) 评论(0) 推荐(0) 编辑