时间:2021-07-01 10:21:17 帮助过:6人阅读
$n=$_GET['che'];输出
define("A", $n);
if(A==star){echo '1';}
else if(A==movie){echo '9';}
else if(A==tv){echo '10';}
else if(A==yue){echo '10';}
else if(A==zongyi){echo '12';}
else if(A==news){echo '15';}
else if(A==yanchu){echo '13';}
else if(A==fashion){echo '20';}
else if(A==astro){echo '23';}
在这里弄个 统一的值
$dict = array(
'star' => '1',
'movie' => '9',
'tv' => '10',
'yue' => '10',
'zongyi' => '12',
'news' => '15',
'yanchu' => '13',
'fashion' => '20',
'astro' => '23',
);
echo isset($dict[$_GET['che']]) ? $dict[$_GET['che']] : ''