डाउनलोड पी.डी.एफ. ई-बुक्स
PHP - Relational Operators

विवरण :

कोई विवरण नहीं है |


सोर्स कोड :

$var1 = 5;
$var2 = 3;

if($var1 < $var2){
echo "var1 is less than var2
"; } else{ echo "var1 is greater than var2
"; } if($var1 <= $var2){ echo "var1 is less than var2
"; } else{ echo "var1 is greater than var2
"; } if($var1 > $var2){ echo "var1 is greater than var2
"; } else{ echo "var1 is less than var2
"; } if($var1 >= $var2){ echo "var1 is greater than var2
"; } else{ echo "var1 is less than var2
"; } if($var1 == $var2){ echo "var1 is equal to var2
"; } else{ echo "var1 is not equal to var2
"; }

आउटपुट :

var1 is greater than var2
var1 is greater than var2
var1 is greater than var2
var1 is greater than var2
var1 is not equal to var2