判断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]");}

本文链接:

https://len.im/56.htm
1 + 3 =
快来做第一个评论的人吧~