Re: [PHP] Simple logic but can't get it right

2006-11-08 Thread Chris
comments inline Choy, Wai Yew wrote: this if statement is false, because $a == 1 if ($a == 0) { $b = 1; $id = "a"; } this if statement is true, becaus

RE: [PHP] Simple logic but can't get it right

2006-11-08 Thread Daevid Vincent
ay, November 08, 2006 9:34 PM > To: php-general@lists.php.net > Subject: [PHP] Simple logic but can't get it right > > Hi gurus, > > > > I've the following piece of PHP codeIt is a simple logic > but I can't > get it rightThe output result of

[PHP] Simple logic but can't get it right

2006-11-08 Thread Choy, Wai Yew
Hi gurus, I've the following piece of PHP codeIt is a simple logic but I can't get it rightThe output result of $id is "b"!!...It should be "outside", right?? I think it is the variable $bCoz' it depend on the previous check ( if ($a == 0) ) for the value... If this is the case,