profile_pic

You can fo↑↑ow my blog

WX:_2guagua

方法一:

switch($level) {
case '0': $level='XX会员'; break;
case '1680': $level='XX会员'; break;
case '2680': $level='XX会员'; break;
case '3680': $level='XX会员'; break;
case '5680': $level='XX会员'; break;
case '10000': $level='XXXX会员'; break;
case '20000': $level='XXXX会员'; break;
case '30000': $level='XXXX会员'; break;
case '50000': $level='XXXX会员'; break;
case '80000': $level='XXXX会员'; break;
default: $level=false;}

方法二:

$array = array(
'0' => 'XX会员',
'1680' => 'XX会员',
'2680' => 'XX会员',
'3680' => 'XX会员',
'5680' => 'XX会员',
'10000' => 'XXXX会员',
'20000' => 'XXXX会员',
'30000' => 'XXXX会员',
'50000' => 'XXXX会员',
'80000' => 'XXXX会员'
);
$level = $array[$level];

标签: none

添加新留言