GC_Filesystem_Base::is_binary()
最后更新于:2021-11-27 16:39:25
GC_Filesystem_Base::is_binary( string$text)Determines if the string provided contains binary characters.
参数
- $text
-
(string) (Required) String to test against.
响应
(bool) True if string is binary, false otherwise.
源文件
文件: gc-admin/includes/class-gc-filesystem-base.php
public function is_binary( $text ) {
return (bool) preg_match( '|[^x20-x7E]|', $text ); // chr(32)..chr(127)
}