摘要: 移除字符串末尾的最后一个字符 1.substr()方法 $string = 'hello kitty'; substr($string,0,-1); 移除字符串右侧字符 1.chop()方法 $string = 'Hello world!'; echo chop($string,'world!'); 阅读全文
posted @ 2018-03-27 10:14 程序猿的猫 阅读(1486) 评论(0) 推荐(0)