最新回答 / 33593602muk
这两个运算符没有任何关系,如果硬要说区别,那就是长的不一样;逻辑与运算符判断2个以上条件的综合结果,如果条件都正确,则结果为true,否则为false;比较符用于比较两个值是否相等,如果值相等,则结果为true,否则为false;
2017-06-30
foreach ($student as $r=>$value){
echo $r.$value;
echo "<br/>";
}
echo $r.$value;
echo "<br/>";
}
2017-06-30
$totalMoney = 0;
$basicMoney = 2000;
$sex = "女";
date_default_timezone_set('Asia/ShangHai');
$currentDate=date("m-d",time());
$dateGirl="06-30";
if($currentDate==$dateGirl && $sex=="女"){
$totalMoney = $basicMoney + 300;
}
else{
$totalMoney = $basicMoney + 0;
}
echo $totalMoney;
$basicMoney = 2000;
$sex = "女";
date_default_timezone_set('Asia/ShangHai');
$currentDate=date("m-d",time());
$dateGirl="06-30";
if($currentDate==$dateGirl && $sex=="女"){
$totalMoney = $basicMoney + 300;
}
else{
$totalMoney = $basicMoney + 0;
}
echo $totalMoney;
2017-06-30
Warning: fopen(/webroot/resource/php/f.txt): failed to open stream: No such file or directory in /54/754/N6wK/index.php on line 3
Warning: fclose() expects parameter 1 to be resource, boolean given in /54/754/N6wK/index.php on line 12
Warning: fclose() expects parameter 1 to be resource, boolean given in /54/754/N6wK/index.php on line 12
2017-06-30
$line=ceil($no%$maxLine);//ceil()函数表示向上取整 这是在第几行
$row=$no%$maxLine ? $no%$maxLine :$maxLine;//如果取模成立也就是说有余数那么取表示1,如果没有余数,那么表达式不成立,取第二个值也就是那个一行最后一个数,即maxLine
$row=$no%$maxLine ? $no%$maxLine :$maxLine;//如果取模成立也就是说有余数那么取表示1,如果没有余数,那么表达式不成立,取第二个值也就是那个一行最后一个数,即maxLine
2017-06-30