That's a better answer than mine. I forgot to mention about comparing booleans too. That manual page is really useful.
2009/2/12 Alexei Tenitski <[email protected]> > > > 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 > > > > -- Chris Hope The Electric Toolbox Ltd Email: [email protected] Web: www.electrictoolbox.com Phone: +64 9 522 9531 Mobile: +64 21 866 529 --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
