Do not use single quotes for numbers $a = 3; $b = 8; Originally Posted by sherlyk http://php.flashwebhost.com/sherly/numbers.php Code: <?php // Number comparison $a='3'; $b='8'; if ($a<$b) { echo $a. 'is smaller than'.$b; }
<?php // Number comparison $a='3'; $b='8'; if ($a<$b) { echo $a. 'is smaller than'.$b; }
Find Your Perfect Life Partner >> Click Here Buy Property - Homes for Sale
View Tag Cloud
Forum Rules
Bookmarks