PHP中的elseif和else if
<?php $a = 1; $b = 2; if($a > $b): echo "1"; elseif($a == $b): echo "2"; else: echo "3"; endif;?>//上面中的代码,如果用else if则报错<?php $a = 1; $b = 1; if($a > $b) { echo "1"; } else if ($a