比较操作符
时间:2007-02-17 来源:PHP爱好者
比较操作符,正如它的名字所示,允许您比较两个值。
Table 7-4. Comparson Operators(表7-4 比较操作符)
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 <$b Less than?/FONT> True if $a is strictly less than $b.?/FONT>
$a > $b Greater than?/FONT> True if $a is strictly greater than $b.?/FONT>
$a <= $b Less than or equal to?/FONT> 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.
php爱好者站 http://www.phpfans.net 为phper提供一切资讯.
Table 7-4. Comparson Operators(表7-4 比较操作符)
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 <$b Less than?/FONT> True if $a is strictly less than $b.?/FONT>
$a > $b Greater than?/FONT> True if $a is strictly greater than $b.?/FONT>
$a <= $b Less than or equal to?/FONT> 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.
php爱好者站 http://www.phpfans.net 为phper提供一切资讯.
相关阅读 更多 +