Re: php 4.3.7/5.0
| From: | Curt Zirzow | Date: | Tue, 13 Jul 2004 22:36:31 +0000 |
| Subject: | Re: php 4.3.7/5.0 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190405@lists.php.net to get a copy of this message | ||
* Thus wrote Josh Close:
> I'm positive that it will always be set, 'cause I set it. It's just
> going the comparison.
>
> if($var)
>
> used to work for
>
> if($var != 0) or if($var != "0")
>
> but that doesn't seem to work since I upgrade. So I'm just going to do
>
> if((int)$var)
I still think this is unnecessary
if ("0") { echo '"0"'; }
if ("") { echo '""'; }
if (0) { echo 0; }
As I pointed out earlier, are still all the same; this behaviour
hasn't changed.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!