输出emoji表情的16进制ascii码方便进行内容匹配
function emoji_asc($text){
$len = strlen($text);
for ($i = 0; $i < $len; $i++) {
echo '\\\\'.'x'.dechex(ord($text[$i]));
}
}
emoji_asc('...');
输出emoji表情的16进制ascii码方便进行内容匹配
function emoji_asc($text){
$len = strlen($text);
for ($i = 0; $i < $len; $i++) {
echo '\\\\'.'x'.dechex(ord($text[$i]));
}
}
emoji_asc('...');