= $length) { break; } } return $count; } else { for ($i = 0; $i { if (ord($string[$i]) > 127) { $i++; $count++; } $count++; } return $count; }}
复制代码