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

Variables From External Sources

When a form is submitted to a PHP script, the information from that form is automatically made available to the script. There are many ways

Variable variables on PHP

Sometimes it is convenient to be able to have variable variable names. That is, a variable name which can be set and used dynamically. A