php filter WeChat emoticons

PHP中文网
Release: 2016-07-29 09:06:06
Original
2596 people have browsed it

php过滤微信表情符号:

// 去掉微信表情符号
		$tmpStr = json_encode($textTpl);
		udsLogDataTxt(7, "tmpStr...".$tmpStr);
		$tmpStr = preg_replace("#(\\\ud[0-9a-f]{3})|(\\\ue[0-9a-f]{3})#ie","",$tmpStr);
		$tmpStr = json_decode($tmpStr);
		udsLogDataTxt(7, "tmpStr...".$tmpStr);
Copy after login


以上就介绍了php过滤微信表情符号,包括了方面的内容,更多相关内容请关注PHP中文网(www.php.cn)!


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template