A function that intercepts the Chinese characters will not appear

xiaoxiao2021-03-06  76

Function Msubstr ($ STR, $ START, $ LEN) {

$ tmpstr = ""

$ Strlen = $ start $ LEN;

For ($ I = 0; $ I <$ Strlen; $ I ) {

IF (Substr ($ Str, $ I, 1)> 0xA0) {

$ Tmpstr. = Substr ($ STR, $ I, 2);

$ i ;

Else

$ Tmpstr. = SUBSTR ($ STR, $ I, 1);

}

Return $ TMPSTR;

}

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

New Post(0)