Home >Backend Development >PHP Tutorial >Comparison Operator_PHP Tutorial

Comparison Operator_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 17:26:14831browse

The comparison operator, as its name suggests, allows you to compare two values.
 
Table 7-4. Comparson Operators (Table 7-4 comparison operators)
example name result?/FONT>
$a == $b Equal?/FONT> True if $a is equal to $b.?/FONT>
$a != $b Not equal True if $a is not equal to $b.?/FONT>
$a True if $a is strictly less than $b.?/FONT>
$a > $b Greater than?/FONT> True if $a is strictly greater than $b.?/FONT>
$a True if $a is less than or equal to $b.?/FONT>
$a >= $b Greater than or equal to?/FONT> True if $a is greater than or equal to $b.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/531977.htmlTechArticleThe comparison operator, as its name suggests, allows you to compare two values. Table 7-4. Comparson Operators (Table 7-4 Comparison operators) example name result?/FONT> $a == $b Equal?/FONT>...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn