note 13148 rejected and deleted from language.operators.logical.php by zak
| From: | zak@php.net | Date: | Tue, 10 Jul 2001 05:19:12 +0000 |
| Subject: | note 13148 rejected and deleted from language.operators.logical.php by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15149@lists.php.net to get a copy of this message | ||
I'm trying to get this stuff to work, but I'm not having a whole lot of luck. This looks
right to me, but it does not run correctly.<br>
if($tomonth == ('1' || '3' || '5' || '7' || '8' ||
'10' || '12')) {
$maxdays='31';
} elseif($tomonth == '2') {
$maxdays='28';
} elseif($tomonth == ('4' || '6' || '9' || '11')) {
$maxdays='30';
}
----------------------------------------
Yes I've tried "or", still no luck....xor works but it stops after the first if
statement..(i.e. maxdate always equals 31).