php字符层截取技艺
php 字符层截取 技巧
/**
* 去除字符串最后1个字符 最简单方法
*/
$str = "abcd";
$newstr = substr($str, 0, -1); //abc
/phprm/39388.htmlwww.phpzy.comtrue/phprm/39388.htmlTechArticlephp字符层截取技艺 php 字符层截取 技巧 /** * 去除字符串最后1个字符 最简单方法 */ $str = "abcd"; $newstr = substr($str, 0, -1); //abc...
PHP之友评论