an if statement
| From: | Andy B | Date: | Tue, 23 Mar 2004 03:59:02 +0000 |
| Subject: | an if statement | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181228@lists.php.net to get a copy of this message | ||
was just wondering if the statement:
if(!$name || !$comments){
/*whatever here*/ }
would be interpreted as : if either $name or $comments doesn't exist then....
or how would the if statement be?? i need to check if the $name and $comments are empty/null because
both $name and $comments are required to continue in the site (to make a post)..