php字符层截取 技巧/** * 去除字符串最后1个字符 最简单方法 */$str abcd$newstr substr($str, 0,
php 字符层截取 技巧
/**
* 去除字符串最后1个字符 最简单方法
*/
$str = "abcd";
$newstr = substr($str, 0, -1); //abc
php 字符层截取 技巧
/**
* 去除字符串最后1个字符 最简单方法
*/
$str = "abcd";
$newstr = substr($str, 0, -1); //abc