Sloppy coding?
| From: | Shawn McKenzie | Date: | Wed, 07 May 2003 04:21:17 +0000 |
| Subject: | Sloppy coding? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146617@lists.php.net to get a copy of this message | ||
I want to sidestep any pitfalls and try to be a good coder. So what is the
difference between these two:
if(!$somevar){
...do stuff
}
if(!isset($somevar)){
...do stuff
}
If one is bad, then are there any other common pitfalls similar to this that
I should avoid???
Thanks!
Shawn