Код: Выделить всё
// PHP class
public static function removeEmoji($string)
{
// split the string into UTF8 char array
// for loop inside char array
// if char is emoji, remove it
// endfor
// return newstring
}
Подробнее здесь: https://stackoverflow.com/questions/128 ... i-function