Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Less than and equal

Mon Oct 27, 2008 1:14 pm

Code:

<?
$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 less than or equal to \$b</P>";
} else {
    echo
"<P>TEST\$a is not less than or equal to \$b</P>";
}
?>




Post a reply
  Related Posts  to : Less than and equal
 Integer value compare with equal sign     -  

Topic Tags

PHP Variables, PHP Basics