您好,欢迎访问一九零五行业门户网

判断指 指定值输出!


回复讨论(解决方案) $n=$_get['che'];define(a, $n);$b = '';if(a=='star'){$b = '1';}else if(a=='movie'){$b = '9';}else if(a=='tv'){$b = '10';}else if(a=='yue'){$b = '10';}else if(a=='zongyi'){$b = '12';}else if(a=='news'){$b = '15';}else if(a=='yanchu'){$b = '13';}else if(a=='fashion'){$b = '20';}else if(a=='astro'){$b = '23';}echo $b;
$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']] : ''

$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']] : ''

大哥
其它类似信息

推荐信息