判断是否为utf-8编码 function is_utf8($string) { return preg_match(‘%^(?: [x09x0Ax0Dx20-x7E] https://www.liuwanlin.info/superlin%e7%9a%84%e8%af%bb%e4%b9%a6%e7%ac%94%e8%ae%b0-52/ ASCII | [xC2-xDF][x80-xBF] https://www.liuwanlin.info/superlin%e7%9a%84%e8%af%bb%e4%b9%a6%e7%ac%94%e8%ae%b0-52/ non-overlong 2-byte | xE0[xA0…
标签: PHP
共 2 篇文章