Method of inserting newline characters in the middle of weaving php Chinese character string

The method of inserting a newline character in the middle of the weaving php Chinese character string
function strsub($str)
{ strcount = mbstrlen (str_count=mb_strlen(
strcount=mbstrlen(str,‘utf-8’);
m i d = c e i l ( mid=ceil( mid=ceil(str_count/2);
return mb_substr( s t r , 0 , str,0, str,0,mid,‘utf-8’)."
".mb_substr( s t r , str, str,mid,$str_count,‘utf-8’);
}

Guess you like

Origin blog.csdn.net/a9490489/article/details/104599398