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

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

WBOY
Release: 2016-06-13 13:02:41
Original
799 people have browsed it

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

这是只有中文的正则

Related labels:
php
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