MOrnink guys!!!!
So,today we will learn the comparator in PHP...before we start this adventure,i want to ask something, do u remember the post entitle "Conditional Logic(if....else)".remember?ryte?.Okey,at that post, we used the double equals sign (==) to test whether the variable was the same thing as some direct text. The double equals sign is known as a Comparison Operator. There a few more of these “operands” to get used in this course.
Below is a list. Take a look....soon we will use them on the next post!
Operand Example Meaning
== $v1 == $v2 $v1 is same with $v2
!= $v1 != $v2 $v1 is not same with $v2
< $v1 < $v2 $v2 is larger than $v1
OR $v1 is less than $v2
> $v1 > $v2 $v1 is larger than $v2
OR $v2 is less than $v1
<= $v1 <= $v2 $v2 is larger than or equal to $v1
>= $v1 >= $v2 $v1 is larger than or equal to $v2
That all !!
Tq!
N/NOTE: for the next post,we will learn how to use them in PHP script...it is easy,ryte?hahaha
No comments:
Post a Comment