Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mbcode($str){
- $r= implode('',array_map(
- function ($v){return mb_strtoupper(mb_substr($v,0,2,'UTF-8'),'UTF-8');}
- ,explode(' ',$str))).mb_strlen(str_replace(' ','',$str),'UTF-8');
- $r=mb_substr($r,0,5,'UTF-8');
- return $r;
- }
Add Comment
Please, Sign In to add comment