I have this code :
function queryString(){
//matches up to 10 digits in page number
$query_string = eregi_replace("page=[0-9] {0,10}&","",$_SERVER['QUERY_STRING']);
return $query_string;
}
当我运行它时,返回以下错误: 警告:preg_match() [function.preg-match]:定界符不能是字母数字或反斜杠
preg_match...
但是你的代码显示了eregi_replace...
。 - Toto