faqts : Computers : Programming : Languages : PHP : kms : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 26 people (77%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

What is the OR operator in PHP?

Jul 6th, 1999 20:30
Nathan Wallace, Jason Brooke


You can use either || or the keyword 'or'.  For more information see:

    http://www.php.net/manual/language.operators.logical.php3

Be careful though, these different operators have different precedence
levels:

    http://www.php.net/manual/language.operators.precedence.php3