RE: if($var) vs. if(isset($var))

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$var = false;

Then the first returns false
While the second is true

> -----Original Message-----
> From: Sam Smith [mailto:php@xxxxxxxx] 
> Sent: dinsdag 23 november 2004 14:23
> To: PHP
> Subject:  if($var) vs. if(isset($var))
> 
> 
> 
> What's the difference between:
> 
> if($var)
> 
> and
> 
> if(isset($var))
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux