* Thus wrote Josh Close:
> 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 */ }
 
These values will all *not* do something:

  var_dump((bool) 0);
  var_dump((bool) array());
  var_dump((bool) "");
  var_dump((bool) "0");
  var_dump((bool) null);
  var_dump((bool) false);


> doesn't work anymore. I've had to change code to
> 
> if($var > 0)

what is the actual value of $var?

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!

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

Reply via email to