Re: php 4.3.7/5.0
| From: | deseavers at mindspring dot com | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: php 4.3.7/5.0 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190392@lists.php.net to get a copy of this message | ||
http://marc.theaimsgroup.com/?l=php-general&m=108646344905178&w=2
-----Original Message-----
From: Matthew Sims <matt@killermookie.org>
Sent: Jul 13, 2004 12:15 PM
To: php-general@lists.php.net
Subject: Re: [PHP] php 4.3.7/5.0
> 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