Reply to discussion (solution)
$n =$_get[' che '];d efine ("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 ' = ' + ', ' yue ' = ' + ', ' zongyi ' = ' n ', ' News ' ' + ', ' yanchu ' = ' + ', ' fashion ' + ', ' astro ', ' + ' , ' ; Echo isset ($ dict[$_get[' che '])? $dict [$_get[' che ']: '
$dict = Array ( ' star ' = ' 1 ', ' movie ' = ' 9 ', ' TV ' = ' + ', ' yue ' = ' + ', ' zongyi ' = > ' n ', ' news ' = ' + ', ' yanchu ' = ' + ', ' fashion ' + ', ' astro ', ' + ', ', ' echo Isset ($dict [$_get[' che ']]? $dict [$_get[' che ']: '
Brother