header


header

s.no Teacher_Name
1 Carmen

comparison operators

<?php $a = 40; $b = 18; if( $a == $b ) { echo "EXAM1 : a is equal to b<br/>"; }else { echo "EXAM1 : a is not equal to b<br/>"; } if( $a < $b ) { echo "EXAM2 : a is less than b<br/>"; }else { echo "EXAM2 : a is not less than b<br/>"; } if( $a > $b ) { echo "EXAM3 : a is greater than b<br/>"; }else { echo "EXAM3: a is not greater than b<br/>"; } if( $a != $b ) { echo "EXAM4 : a is not equal to b<br/>"; }else { echo "EXAM4 : a is equal to b<br/>"; } if( $a >= $b ) { echo "EXAM5 : a is either greater than or equal to b<br/>"; }else { echo "EXAM5 : a is neither greater than nor equal to b<br/>"; } if( $a <= $b ) { echo "EXAM6 : a is either less than or equal to b<br/>"; }else { echo "EXAM6 : a is neither less than nor equal to b<br/>"; } ?>

output:

EXAM1 : a is not equal to b EXAM2 : a is not less than b EXAM3 : a is greater than b EXAM4 : a is not equal to b EXAM5 : a is either greater than or equal to b EXAM6 : a is neither less than nor equal to b