Home  >  Article  >  Backend Development  >  How to custom intercept Chinese strings in php

How to custom intercept Chinese strings in php

迷茫
迷茫Original
2017-03-26 10:50:161481browse

php custom interception of Chinese strings-utf8 version

UTF-8 encoding range (utf-8 uses 1-6 bytes to encode characters, but actually only uses 1-4 bytes) :

1个字节:00——7F
2个字节:C080——DFBF
3个字符:E08080——EFBFBF
4个字符:F0808080——F7BFBFBF
rrree

The above is the detailed content of How to custom intercept Chinese strings in php. For more information, please follow other related articles on the PHP Chinese website!

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