seems_utf8
函数
seems_utf8 ( $str )
- 参数
-
-
(string)
$str
The string to be checked- Required: 是
-
(string)
- 返回值
-
- (bool) True if $str fits a UTF-8 model, false otherwise.
- 定义位置
-
-
wp-includes/formatting.php
, line 879
-
wp-includes/formatting.php
- 引入
- 1.2.1
- 弃用
- –
Checks to see if a string is utf8 encoded.
NOTE: This function checks for 5-Byte sequences, UTF8
has Bytes Sequences with a maximum length of 4.
function seems_utf8( $str ) { mbstring_binary_safe_encoding(); $length = strlen( $str ); reset_mbstring_encoding(); for ( $i = 0; $i
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。