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

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

WBOY
WBOYOriginal
2016-06-13 13:02:41732browse

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