http://example.com/safety-checks/?carid=63&interval=2
通过执行以下操作获取当前URL
$current_url = $_SERVER['REQUEST_URI'];
尝试 explode
explode
$noInterval = explode("&", $current_url)[0]