<?php $str='http://www.com.com/index.php?id=1'; $str=substr($str,7);//去除前面 $n=strpos($str,'?');//寻找位置
function is_gb2312($str){