Requests_IDNAEncoder::is_ascii()
最后更新于:2021-11-26 03:23:19
Requests_IDNAEncoder::is_ascii( string$string)Check whether a given string contains only ASCII characters
参数
- $string
-
(string) (Required)
响应
(bool) Is the string ASCII-only?
源文件
文件: gc-includes/Requests/IDNAEncoder.php
protected static function is_ascii($string) {
return (preg_match('/(?:[^x00-x7F])/', $string) !== 1);
}