function strsub($str)
{
$str_count=mb_strlen($str,'utf-8');
$mid=ceil($str_count/2);
return mb_substr($str,0,$mid,'utf-8')."<br/>".mb_substr($str,$mid,$str_count,'utf-8');
}
织梦php汉字字符串中间插入换行符方法
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/f7fa7e47ee93114c55b98564fc0b1e74.html