> The following result in true:
> "php" == TRUE

non empty string converted to boolean = true
hense following is false:

"php" == FALSE


> "php" == 0

non empty string converted to int = 0
hense following is false:

"php" == 1

check out documentation about variable type conversion

http://nz.php.net/manual/en/language.types.type-juggling.php

Alexei

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to