Monday, 4 June 2018

comparison operator in php





<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>comparison operator..</title>

</head>



<body>

<?php

$a=10;

$b=5;

$c=10;







if($a === $b)

{

echo " <p style='color:green'>success </p>" ;

}



else

{

echo "<p style='color:red'> failure </p>" ;

}

echo "<h1> >= Operator </h1>";



echo "a>=b =".($a>=$b);



echo "<h1> <= Operator </h1>";



echo "a<=b =".($a<=$b);



echo "<h1> == Operator </h1>";



echo "a==b =".($a==$b);



echo "<h1> != Operator </h1>";



echo "a!=b =".($a!=$b);







echo "<h1> === Operator </h1>";



echo "a===c =".($a===$c);







?>





</body>

</html>

No comments:

Post a Comment

Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC

Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...