用三目运算符显示成绩等级
<?php //成绩 $score = 65; $g = $score>=85?'A':($score>=70?'B':'C'); echo $g; ?>
mogu
要发表评论,您必须先登录。