Correction status:qualified
Teacher's comments:
1.问答题: 什么是变量的作用域:
<meta charset="UTF-8"> <?php //2. 编程: 变量的类型与检测 $int = 80; $string = '张三'; $bool = true; $array = ['一','二','三']; $double = 52.8; print(gettype($double)); //3. 编程: 分支结构的实例 echo '<br>'; $score = 80; switch ($score) { case $score > 90 : print('优秀'); break; case $score > 60 : print('合格'); break; default: print('不及格'); }
点击 "运行实例" 按钮查看在线实例