<?php$a=2;$b=2.0;if($a==$b){ //使用==,值相等即相等echo "相等";}if($a===$b){//使用===,值相等,类型也要相等echo "<br />"."全等";}else{echo "<br />"."不全等";}?>