<?php
$a=1;
echo $a; # 结果为1
?>
<?php
$a=1;
$b=1;
$c=2;
if($a == $b){
echo "a=b"; # 输出a=b
}elseif($a == $c){
echo "a=c";
}
?>
<?php
$a=1;
$b="1";
$c=1;
if($a === $b){
echo "a=b";
}elseif($a === $c){
echo "a=c"; # 输出a=c
}
?>