1. Home
  2. Docs
  3. PHP Style Guide
  4. Logical Operators

Logical Operators

Use of the || “or” comparison operator is discouraged, as its clarity on some output devices is low (looking like the number 11, for instance). && is preferred over AND but either are acceptable, and a space should always precede and follow !.



Was this article helpful to you? Yes No

How can we help?