Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


PHP Logical Operators

July 21, 2000

Operator Name Description Example Yield
and
And True if both lefthand and righthand expressions are true.
(5>2) and (3>2)

(2>5) and (3>2)
true

false
or
Or True if either lefthand or righthand expression is true.
(5>2) or (2>7)

("h">"a") or (1<3)
true

true
xor
Exclusive Or True if either lefthand or righthand expression is true unless both are true.
("ar">"ac") xor (9>2)

(3==3) xor ("f"=="f")
true

false
!
Not Negates the expression it precedes, true if the expression is not true.
!("small"<"smell")
false

All of these operators can certainly be exhausting!

Just as eye fatigue sets in, a jolt! We're about to string together everything we've learned so far, with the magic of control statements. Things get much more exciting from here on in, for those of us excited by this sort of thing (and who admit it).

PHP Comparison Operators
Welcome to PHP
Control Statements


Up to => Home / Authoring / Languages / PHP / Welcome




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers