我想在php 5中使用和OR语句,但它只是不工作,这个脚本有什么问题。这是假设发射的错误,但它没有。如果我删除“||”(我认为是OR语句),它会引发错误。php 5 OR语句
if($winner=="2" && $fteamscore>$steamscore){
$return['error'] = true;
$return['msg'] = 'Wrong Score, You said you LOST but you are reporting that you WON.';
}
if($winner=="3" && $fteamscore>$steamscore){
$return['error'] = true;
$return['msg'] = 'Wrong Score, You said you WON but your are reporting that your OPPONENT won.';
}
if($fteamscore<$steamscore && $winner=="3" || $winner=="2"){
您的回答最好。谢谢 – 2010-07-15 16:23:01