Judging whether it is Chinese characters

xiaoxiao2021-03-06  92

$ Str = "1";

IF (preg_match ("/ ^ [". "-". chr (0xff). "] $ /", $ STR) {

Echo "This is a pure Chinese string";

} else {

Echo "This is not a pure Chinese string";

}

?>

转载请注明原文地址:https://www.9cbs.com/read-122111.html

New Post(0)