header
s.no | Teacher_Name |
1 | Carmen |
CODE
";
}else{
echo "EXAM1 : Either a or b is false
";
}
if( $a || $b ) {
echo "EXAM2 : Either a or b is true
";
}else{
echo "EXAM2 : Both a and b are false
";
}
if( $a and $b ) {
echo "EXAM3 : Both a and b are true
";
}else{
echo "EXAM3 : Either a or b is false
";
}
if( $a or $b ) {
echo "EXAM4 : Either a or b is true
";
}else {
echo "EXAM4 : Both a and b are false
";
}
?>
output:
EXAM1 : Both a and b are true
EXAM2 : Either a or b is true
EXAM3 : Both a and b are true
EXAM4 : Either a or b is true