Home >Backend Development >PHP Tutorial >php稽查字符串中是否包含中文

php稽查字符串中是否包含中文

WBOY
WBOYOriginal
2016-06-13 11:00:52916browse

php检查字符串中是否包含中文
#[\x{4e00}-\x{9fa5}]+#u

这是只有中文的正则

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