If statement w/ multiple conditions
| From: | ed at home dot homes2see dot com | Date: | Tue, 26 Nov 2002 12:50:08 +0000 |
| Subject: | If statement w/ multiple conditions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-126077@lists.php.net to get a copy of this message | ||
I'll be trying to use a routine that checks 4 seperate variables for
content and need to know the easiest method to do so. The function works
on 2 conditions; either all the variables are empty and I do something or
I do something else.
$lineone
$linetwo
$linethree
$linefour
Would you use
if ($lineone && $linetwo && $linethree && $linefour = "")
Thanks,
Ed