都试试
{$ma.title|mb_substr=0,5,'utf-8'}
{$a['a']['b']|substr=0,2} //显示前面,两个字符
{$a['a']['b']|substr=0,-2}//删除后面,两个字符
{$ma.title|msubstr=0,5,'utf-8'}
都试试
{$ma.title|mb_substr=0,5,'utf-8'}
{$a['a']['b']|substr=0,2} //显示前面,两个字符
{$a['a']['b']|substr=0,-2}//删除后面,两个字符
{$ma.title|msubstr=0,5,'utf-8'}