<?php function foo() { return 1; } if (foo() == TRUE) echo "true"; ?>
function returns 1 equals true, but if I change the 1 to say 3, it still returns true. Why is that?
Thanks in advance
http://nz.php.net/manual/en/types.comparisons.php
try changing it to 0.
then, try changing == to ===.