Home >Backend Development >PHP Tutorial >PHP怎么识别emoji表情

PHP怎么识别emoji表情

WBOY
WBOYOriginal
2016-06-23 13:49:401557browse

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


回复讨论(解决方案)

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

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




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

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn