The most noticeable difference between Boolean values in PHP and
false, whereas only
Additionally, in PHP,
TRUE has a
false, which can be returned as string
The difference between unary, binary, and ternary operators is the number of operands each requires (one, two, and three, respectively).
The best way to force your own operator precedence is to surround the parts of an expression to be evaluated first with parentheses.
The simplest forms of expressions are literals (such as numbers and strings) and variables, which simply evaluate to themselves.
The three conditional statement types are
switch, and the
Most conditional expressions in
while statements are literal or Boolean and
therefore trigger execution when they evaluate to
TRUE. Numeric expressions trigger execution
when they evaluate to a nonzero value. String expressions trigger
execution when they evaluate to a nonempty string. A
NULL value is evaluated as false and
therefore does not trigger execution.
are more powerful than
because they support two additional parameters to control loop
with statement takes an object as its parameter. Using ...