if(){} 的另一种写法

0 views
Skip to first unread message

Chen Liqiang

unread,
Aug 25, 2006, 3:50:53 AM8/25/06
to 学习日志
$a==1 && $b=1;
等同
if ($a==1) {
$b=1;

}

$a==1 || $b=1;
等同
if ($a!=1) {
$b=1;

}

Reply all
Reply to author
Forward
0 new messages