Heim >Backend-Entwicklung >PHP-Tutorial >PHP怎么识别emoji表情

PHP怎么识别emoji表情

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 13:49:401575Durchsuche

比如一个字符串 ‘老虎【emoji表情】老虎’           
怎么能识别出【emoji表情】而老虎是汉字呢。。。
编码格式为UTF-8


回复讨论(解决方案)

emoji表情符是4字节utf-8,而utf-8汉字是3字节的
很容易区分的

emoji表情符是4字节utf-8,而utf-8汉字是3字节的
很容易区分的




那请问还有别的什么是4字节的么?

在目前的操作系统中,没有了
以后有没有,不知道

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn