Newbie question about good coding practice [isset]
| From: | Al | Date: | Sat, 05 Jun 2004 18:52:37 +0000 |
| Subject: | Newbie question about good coding practice [isset] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-187703@lists.php.net to get a copy of this message | ||
if($var) do something;
verses
if(isset($var)) do something;
The simple form if($var) seems to work fine and I see it in code often.
Is there a good reason for using isset?