判断id跳转网页php代码
$id=$_GET['id'];
$url=array("https://www.baidu.com/","https://www.weibo.com/"); //数组id从0开始
if(empty($url[$id])){
header("Location:https://len.im");
}else{
header("Location:$url[$id]");}
$id=$_GET['id'];
$url=array("https://www.baidu.com/","https://www.weibo.com/"); //数组id从0开始
if(empty($url[$id])){
header("Location:https://len.im");
}else{
header("Location:$url[$id]");}