If I understood the question wouldn't this work??? if (!is_null($int) && $int < 1) { // do some foobar }
Carl Furst wrote:
IF $int is null and I have a test
If($int < 1) { //do some foobar }
will $int be evaluated as a zero? IF I cast (int) $int.. will that turn a null $int into a zero??
Documentation aint too clear.
Thanks,
Carl.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php