Not equal : Logic Operators : Language Basics PHP Source Code


PHP Source Code » Language Basics » Logic Operators »

 

Not equal





<?
$a = 21;
$b = 15;
echo "<P>Original value of $a is $a and $b is $b</P>";


if ($a != $b) {
    echo "<P>TEST$a is not equal to $b</P>";
else {
    echo "<P>TEST$a is equal to $b</P>";
}
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Logic Operators