thinkphp 截取字符串

来源:互联网 发布:测手速软件 编辑:程序博客网 时间:2024/06/05 04:45

$temp_str = 'abc,ddd,333,555,';

$temp_str = substr($temp_str,0,strlen($temp_str) - 1);


echo $temp_str ;


// 结果为abc,ddd,333,555

0 0