Just go with your instincts, you got 'em ;)

&&, AND for "and"
||, OR for "or".

The symbols are at one precendece level higher than the words, I believe.

Kirk

> -----Original Message-----
> From: brendan conroy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 10:47 AM
> To: [EMAIL PROTECTED]
> 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
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to