成都网站建设设计

将想法与焦点和您一起共享

PHP计算字符串的个数

function stringLength($string){
    $re['utf-8']   = "/[\x01-\x7f]|[\xc2-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xff][\x80-\xbf]{3}/";
    preg_match_all($re['utf-8'], $string, $match);
    return count($match[0]);
}

成都创新互联作为成都网站建设公司,专注成都网站建设、网站设计,有关成都定制网站方案、改版、费用等问题,行业涉及成都VR全景等多个领域,已为上千家企业服务,得到了客户的尊重与认可。


网页题目:PHP计算字符串的个数
URL地址:http://chengdu.cdxwcx.cn/article/iedjdo.html