Re: [PHP] Simple logic but can't get it right
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
Since you don't declare variables in PHP, they are preinitialized for you as 'false' or '0' So since $b is not set initially, it is 0 therefore second elseif passes. > -Original Message- > From: Choy, Wai Yew [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 08, 2006 9:34 PM > To: p