Isset
| From: | Liam Gibbs | Date: | Fri, 21 Mar 2003 19:06:31 +0000 |
| Subject: | Isset | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140621@lists.php.net to get a copy of this message | ||
Is isset() better than $ != ""?
Often, I may have a 0 as values. While $ != "" doesn't recognize 0s (as in, that if
would be false), isset() seems to work. Should I change all my $ != "" to isset()s, or are
there other factors I should check?