Error Control Operators

PHP supports one error control operator: the at sign (@). When prepended to an expression in PHP, any error messages that might be generated by

Comparison Operators

Comparison operators, as their name implies, allow you to compare two values. You may also be interested in viewing the type comparison tables, as they

Bitwise operators

Bitwise operators allow evaluation and manipulation of specific bits within an integer. Bitwise Operators Example Name Result $a & $b And Bits that are set

Assignment Operators on PHP

The basic assignment operator is «=». Your first inclination might be to think of this as «equal to». Don’t. It really means that the left

Arithmetic Operators on PHP

Remember basic arithmetic from school? These work just like those. Arithmetic Operators Example Name Result -$a Negation Opposite of $a. $a + $b Addition Sum

Operator Precedence on PHP

The precedence of an operator specifies how «tightly» it binds two expressions together. For example, in the expression 1 + 5 * 3, the answer

Operators on PHP

Operator Precedence Arithmetic Operators Assignment Operators Bitwise Operators Comparison Operators Error Control Operators Execution Operators Incrementing/Decrementing Operators Logical Operators String Operators Array Operators Type Operators

Magic constants for PHP

PHP provides a large number of predefined constants to any script which it runs. Many of these constants, however, are created by various extensions, and

Expressions on PHP

Expressions are the most important building stones of PHP. In PHP, almost anything you write is an expression. The simplest yet most accurate way to

Constants on PHP

A constant is an identifier (name) for a simple value. As the name suggests, that value cannot change during the execution of the script (except