日期:2014-05-17  浏览次数:20495 次

php 字符层截取 技巧
/**
* 去除字符串最后1个字符 最简单方法
*/

$str = "abcd";
$newstr = substr($str, 0, -1); //abc