十一、隐藏姓名

2017-08-21  本文已影响12人  yuzhan550
?php
str = '宋萨呀';

head   = mb_substr($str,0,1,'utf-8');
foot   = mb_substr($str,-1,1,'utf-8');
length = mb_strlen($str,'utf-8')-2;
star_length = str_repeat('*',$length);
cho $res = $head .$star_length.$foot;
上一篇下一篇

猜你喜欢

热点阅读