Php Program PHP判断url是否带参数 PHP如何判断url是否带参数呢? 直接上代码: 1 2 3 $link_url = $_SERVER["REQUEST_URI"]; //判断链接中是否存在 ? $hasParam = strpos($link_url, '?');