if (strlen($name) % 3 != 0){
$name_arr = mb_str_split($name);
foreach($name_arr as $k => $name){
if (strlen($name) == 4){
unset($name_arr[$k]);
}
}
return implode('', $name_arr);
}
if (strlen($name) % 3 != 0){
$name_arr = mb_str_split($name);
foreach($name_arr as $k => $name){
if (strlen($name) == 4){
unset($name_arr[$k]);
}
}
return implode('', $name_arr);
}