<?php
$a = 78;
$b = 20;
$c = 80;
$d = $a >= $b ? (($a >= $c) ? "$a":"$c"): "$b";
echo $d;
?>
$a = 78;
$b = 20;
$c = 80;
$d = $a >= $b ? (($a >= $c) ? "$a":"$c"): "$b";
echo $d;
?>
2017-07-24
<?php
$a = 78;
$b = 20;
$c = 78;
$d = $a >= $b ? "$a":"$b";
$e = $d >= $c ? "$d":"$c";
echo $e;
?>
$a = 78;
$b = 20;
$c = 78;
$d = $a >= $b ? "$a":"$b";
$e = $d >= $c ? "$d":"$c";
echo $e;
?>
2017-07-24
提交按钮点击报错
Failed to load resource: /course/codesubmit
net::ERR_CONNECTION_ABORTED
Failed to load resource: /course/codesubmit
net::ERR_CONNECTION_ABORTED
2017-07-24
foreach($students as $k=>$val)
{ //使用循环结构遍历数组,获取学号
echo $k; //输出学号
echo ":";
//循环输出姓名和分数
foreach($val as $v)
{
echo "----";
echo $v;
}
echo "<br />";
}
{ //使用循环结构遍历数组,获取学号
echo $k; //输出学号
echo ":";
//循环输出姓名和分数
foreach($val as $v)
{
echo "----";
echo $v;
}
echo "<br />";
}
2017-07-24
if($today == $birthday) {
$money = $money*$discount;
}else{
$money = $money*1;
}
$money = $money*$discount;
}else{
$money = $money*1;
}
2017-07-24