将这种字符 (🙏) 转换为表情符号
Convert this kind of char (🙏) to emoji
我想将这种字符转换成可读的表情符号
🙏
=>
🙏
我应该使用什么 PHP 函数?
您可以使用html_entity_decode()
$char = html_entity_decode("🙏");
echo $char; //
或者您使用此 unicode 表示法(来自 php 7.0)
echo "\u{1f64f}"; //
我想将这种字符转换成可读的表情符号
🙏
=>
🙏
我应该使用什么 PHP 函数?
您可以使用html_entity_decode()
$char = html_entity_decode("🙏");
echo $char; //
或者您使用此 unicode 表示法(来自 php 7.0)
echo "\u{1f64f}"; //