输入banner图图片脚本导航/分类

php字符层截取技艺

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

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