> I've noticed that in the last release of php 4.3.7 (or 5.0.0), that
> when checking the value of a variable has changed.
>
> ex:
>
> if($var){ /* do something */ }
>
> doesn't work anymore. I've had to change code to
>
> if($var > 0)
>
> but the problem is, what if $var was converted to $var = "0" instead
> of $var = 0 somewhere throughout the code that I didn't know about?
>
> Is there a way to be sure what's going on here?
>
> --
> -Josh

What about the isset function? Or any of the following:

http://us3.php.net/manual/en/ref.var.php

--Matthew Sims
--<http://killermookie.org>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to