关于条件结构
<?php
$totalMoney = 0;//总工资
$basicMoney = 2000;//基本工资
$sex = "男";
if($sex == "男"){
$totalMoney = $basicMoney + 0;//男的没奖金
}
else if($sex == "女"){//否则性别为女的话
$totalMoney = $basiceMoney + 300;//奖金300
}
echo $totalMoney;
为什么总工资是0啊,总工资不是基本工资加奖金吗
<?php
$totalMoney = 0;//总工资
$basicMoney = 2000;//基本工资
$sex = "男";
if($sex == "男"){
$totalMoney = $basicMoney + 0;//男的没奖金
}
else if($sex == "女"){//否则性别为女的话
$totalMoney = $basiceMoney + 300;//奖金300
}
echo $totalMoney;
为什么总工资是0啊,总工资不是基本工资加奖金吗
2017-07-06
举报