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.
if((($m[0]=="-")&&($count<2))||($count++"0")) this seems ok but $count++"0" is not OK. What you want to do? Best regards, Andrey Hristov "Back from the exams hell...." ----- Original Message ----- From: "brendan conroy" <[EMAIL PROTECTED]> To: <[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 http://explorer.msn.com/intl.asp. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php