For example: a is not smaller than b
How do i write this ?
For example: a is not smaller than b
How do i write this ?
If a is not smaller than b, a is either greater than or equal to b so:
$a >= $b
Having an exclamation point outside of the condition causes a syntax error, doesn't it?
if(!($a < $b))
"IF NOT A SMALLER THAN B"
Makes the most linguistic sense compared to their question.
if( $a >= $b ) {
echo $a . " is not smaller than " . $b;
} else {
echo $a . " is smaller than " . $b;
}