Hey there,

  I was just bitten by a - IMHO - weirdness with boolean values:

      $foo = -1;
      if ($foo) { print "bar"; }

  The code above print 'bar'. I would expect if($x) t return true if $x
is an integer and greater that zero. This is what my intuition tells me

  Just a thought,

 sebastian bergmann                            [EMAIL PROTECTED]

 bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to