摘要: 1.trim:去除字符串首尾出的空白字符(或其他字符)eg: $text = " there are a few words. ";print_r(trim($text));2.ltrim:去除左边的空白字符.3.rtrim:去除右边的空白字符. 4.str_pad():按需求对字符串进行填充.第一 阅读全文
posted @ 2017-03-19 16:47 VictoriaChen 阅读(1152) 评论(0) 推荐(0)