[pmwiki-devel] php logic question
Hladůvka Jiří
mail at revida.sk
Tue Mar 13 16:44:21 CDT 2007
Programming languages use to have some operators precedence.
Usualy the unary operators are evaluated as the first.
The negation is an unary operator .
After processing both negations the binary operator "or" takes its turn.
IMO the expressions are equivalent.
See
http://www.php.net/manual/en/language.operators.php#language.operators.precedence
Regards,
Jiri
Hans napsal(a):
> For logical condition tests, is the following allowed:
>
> if (!$page OR !$permit)
>
> or this:
>
> if ((!$page) OR (!$permit))
>
> or are they equivalent?
>
>
> thanks!
> Hans
>
>
> _______________________________________________
> pmwiki-devel mailing list
> pmwiki-devel at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
>
> __________ Informacia od NOD32 2113 (20070313) __________
>
> Tato sprava bola preverena antivirusovym systemom NOD32.
> http://www.eset.sk
>
>
>
>
More information about the pmwiki-devel
mailing list