smarty中应用mb_substr()截取字符串

{$abc|mb_substr:0:20:'GBK'},从0开始截取$abc20个字符长度,编码为gbk

你可能感兴趣的:(smarty中应用mb_substr()截取字符串)