小有进步
发誓,再也不偷菜了!
<html>
<body>
<?php
$date=’year’;
if(
$date==’2000′
)
{echo
‘你输对了,真聪明’;
}
else{
echo’你输入错了,不过依然很聪明’;
}
$age=15;
if($age=15){
echo ‘你还记得你的生日哦’;
}
else{
echo ‘你个笨蛋’;
}
$name=’gongshuo’;
if($name==’baishuzhan’){
echo ‘你真是个笨蛋’;
}
elseif($name==’gongshuo’)
echo ‘是个天才’;
else
echo ‘还是个天才’;
?>
</body>
</html>
- digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article
- reddit: Bookmark this article
- magnolia: Bookmark this article
- stumbleupon: Bookmark this article
- yahoo: Bookmark this article
- google: Bookmark this article
