删除字符串最后一位字符

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

猜你喜欢

转载自blog.51cto.com/xihan/2439092