(PHP 4, PHP 5, PHP 7)
锟斤拷锟斤拷锟斤拷要锟斤拷锟斤拷锟斤拷某锟斤拷锟斤拷锟斤拷时执锟斤拷一锟斤拷锟斤拷洌拷锟斤拷诓锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷时执锟斤拷锟斤拷锟斤拷锟斤拷洌拷锟斤拷锟斤拷锟�
else 锟侥癸拷锟杰★拷else 锟斤拷锟斤拷锟斤拷
if 锟斤拷洌拷锟斤拷锟斤拷锟� if
锟斤拷锟斤拷械谋锟斤拷式锟斤拷值为 FALSE
时执锟斤拷锟斤拷洹o拷锟斤拷锟斤拷锟斤拷麓锟斤拷锟斤拷锟�
$a 锟斤拷锟斤拷 $b 时锟斤拷示
a is bigger than b锟斤拷锟斤拷之锟斤拷锟斤拷示
a is NOT bigger than b锟斤拷
<?php
if ($a > $b) {
echo "a is greater than b";
} else {
echo "a is NOT greater than b";
}
?>
FALSE
时执锟叫o拷锟轿硷拷 elseif锟斤拷锟斤拷