显示错误:
警告:strpos()[function.strpos]:字符串中不包含偏移量
代码为
function trimSearchURL($URL, $Pos, $end = '&')
{
if ($Pos) {
$nEndPos = strpos($URL, $end, $Pos);
if ($nEndPos === false) {
$URL = substr($URL, $Pos);
} else {
$URL = substr($URL, $Pos, $nEndPos - $Pos);
}
}
return $URL;
}
$Pos似乎大于$URL中的字符串是长
$nEndPos = strpos($URL, $end, $Pos)