Php 如果语句具有多个条件,其中1个语句为true,则该语句不起作用

Php 如果语句具有多个条件,其中1个语句为true,则该语句不起作用,php,Php,我有以下声明 if ( !(strstr($Description1,'word1') OR strstr($Description1,'word2') OR strstr($Description2,'word1') OR strstr($Description2,'word2') OR strstr($Description3,'word1') OR strstr($Description3,'word2') OR strstr($Descrip

我有以下声明

if ( !(strstr($Description1,'word1') OR strstr($Description1,'word2') OR
       strstr($Description2,'word1') OR strstr($Description2,'word2') OR 
       strstr($Description3,'word1') OR strstr($Description3,'word2') OR 
       strstr($Description4,'word2') OR strstr($Description4,'word2') OR 
       ($_POST['fine'] == x) OR ($_POST['fine'] == y) OR ($_POST['fine'] == z))) { 

    Action1
} else { 
    Action2
}

如果其中任何一个陈述是真的,它将执行操作2。我想让它做的是,如果有任何语句是真的,请转到Action1,将or位保留在一组括号内。 如果$a==a | |$b==b{ 行动1} 否则{Action2}

为什么不干脆删除这个!在开始时或只是切换操作1和操作2


脱掉帽子,不要!谢谢你的回复,但是我尝试了这两种方法,但仍然不起作用。如果任何陈述是真实的,则转到操作2。
if ((strstr($Description1,'word1') OR strstr($Description1,'word2') OR
       strstr($Description2,'word1') OR strstr($Description2,'word2') OR 
       strstr($Description3,'word1') OR strstr($Description3,'word2') OR 
       strstr($Description4,'word2') OR strstr($Description4,'word2') OR 
       ($_POST['fine'] == x) OR ($_POST['fine'] == y) OR ($_POST['fine'] == z))) { 

    Action1
} else { 
    Action2
}
if ( !(strstr($Description1,'word1') OR strstr($Description1,'word2') OR
       strstr($Description2,'word1') OR strstr($Description2,'word2') OR 
       strstr($Description3,'word1') OR strstr($Description3,'word2') OR 
       strstr($Description4,'word2') OR strstr($Description4,'word2') OR 
       ($_POST['fine'] == x) OR ($_POST['fine'] == y) OR ($_POST['fine'] == z))) { 

    Action2
} else { 
    Action1
}