UTF-8 iconv() Wind 50 .
50 .
function name_filtered($name)
{
$name = iconv('UTF-8', 'windows-1251', $name);
$name = preg_replace("/[^(\x9|\xA|\xD|\x20-\xD7FF|\xE000-\xFFFD|\x10000\-\x10FFFF)]*/", "", $name);
if (strlen($name)<=50) return $name;
return substr($name,0,50).'... ';
}
?
ЧЁ НЫЕ ВОЛКИ 18+ 24/7 ~~~★~~❹~~❼~~★~~~~~~~~~~
, (). . . .
❹~~❼ ?