Re: isset() VS if($var)
| From: | Phil Driscoll | Date: | Mon, 09 Apr 2001 13:20:25 +0000 |
| Subject: | Re: isset() VS if($var) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-47776@lists.php.net to get a copy of this message | ||
Bear in mind that writing
if($b)
when there is a chance that $b is undefined, is poor programming practice
and can allow scope for harmful exploits of your code.
In general, you should run your development machine with an error reporting
level of E_ALL, and you should not be happy with your code if any warning
messages are ever displayed.
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org