如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
$str = "www.wangmingchang.com"; $str=bin2hex($str); $strnum = mb_strlen($str,'UTF8'); while ($strnum){ $array[] = mb_substr($str,0,2,'utf8'); $str = mb_substr($str,2,$strnum,'utf8'); $strnum = mb_strlen($str,'UTF8'); } echo 'http://%'.$output=implode('%',$array).'/';