php的if语句单行与多行

时间:2014-06-10 20:28:29   收藏:0   阅读:221
//正确:
if(empty($a))$a=1

//错误写法
$b = if(empty($a))$a=1   //if前面不能带 等号

 

php的if语句单行与多行,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!