相关疑难解决方法(0)

PHP:编写一个简单的removeEmoji函数

我正在寻找一个简单的功能,可以删除Instagram评论中的表情符号字符.我现在尝试过的(我在SO和其他网站上找到的示例代码中有很多代码):

// 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
}
Run Code Online (Sandbox Code Playgroud)

任何帮助,将不胜感激

php emoji instagram

25
推荐指数
7
解决办法
3万
查看次数

如何从字符串中移除所有表情符号 - php

如何删除以下字符串中的所有表情符号?

Lorem ipsum dolor坐下来,精致的adipistur elit.

php regex

13
推荐指数
2
解决办法
2万
查看次数

标签 统计

php ×2

emoji ×1

instagram ×1

regex ×1