They are && and ||, also there are "AND" and "OR" case insesitive. But you have to 
know taht && and "and" have different place in
the precedence table. The same is for || and "or". But This is very rare case to rely 
on the precedence.

this seems ok but
 is not OK. What you want to do?

Best regards,
Andrey Hristov

"Back from the exams hell...."

----- Original Message -----
From: "brendan conroy" <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 7:46 PM
Subject: [PHP] VERY novice question!

> Thanks for reading this! This is a really novice question but I cant find
> any info about this in the online manual. I would be grateful if someone
> could email me the PHP equivalent of the "&&"(AND) and "||"(OR) operators
> which are used in C.
> I'am trying to write if statements like
> if((($m[0]=="-")&&($count<2))||($count++"0"))
> {
> }
> I be grateful for any replies!!
> Thanks,
> Bren
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
> --
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to