RE: [PHP-WIN] Question about TRUE and FALSE

2001-05-21 Thread andrew morton
Err never mind it's there in the manual under expressions, I expected it to be in the constants section. sorry, andrew -Original Message- From: andrew morton Sent: Monday, May 21, 2001 13:21 To: Php-Windows (E-mail) Subject: [PHP-WIN] Question about TRUE and FALSE Anyone hav

[PHP-WIN] Question about TRUE and FALSE

2001-05-21 Thread andrew morton
Anyone have any idea why the constant TRUE evaluates to 1 but FALSE evaluates to "" and not 0? The fragment if (!"") print "true"; else print "false"; works the same as if (!FALSE) print "true"; else print "false"; I'm used to the Cish behavior of false=0 and true!=0, is this something th