PHP Operators

In this tutorial we will study about PHP operators, PHP supports mainly three kind of operators and every kind of operators will be described in subsequent pages.

Tutorials

PHP Operators

In this tutorial we will study about PHP operators, PHP supports mainly three kind of operators and every kind of operators will be described in subsequent pages.

Operators in PHP:

Every computer language has its own set of operators, most of the operators are same among all languages and  few languages supports some different set of operators.

PHP supports mainly three kind of operators, unary which needs only one operand, binary which needs two operands and ternary is a kind of operator which acts like if else condition and it needs three operands.

Following links will describe each kind of operators:

PHP Arithmetic Operator
In this PHP tutorial we will study about PHP Arithmetic Operator is is used to perform addition(+), subtraction(-), Division(/), Multiplication(*), modulus(%). with variable or value. PHP Arithmetic Operator Examples will make it more clear.

PHP Assignment Operators
In this tutorial we will study about PHP assignment operators, types of assignment operators, how to use the operators etc are given in the example, do it by yourself, you could make necessary modifications as well.

PHP Increment Decrement Operator
In this tutorial we will study about increment and decrement operators, PHP follows 'C' style increment and decrement operators. Examples in this tutorial will make it more clear.

PHP Bitwise Operator
In this tutorial we will study about bitwise operator, bitwise operator works on bit or binary number of an integer value. Examples in this tutorial will make it more clear.

PHP Comparison Operator
In this tutorial we will study about comparison operator, comparison operator is used to compare two or more operands. Examples in this tutorial will make it more clear.

PHP Logical Operator
In this tutorial we will study about logical operator, logical operator are used when we need to check the equality between values. Examples in this tutorial will make it more clear.

PHP String Operator
In this tutorial we will study about string operator, string operators work only on the strings and there are only two kinds of operators are available in PHP "." and ".=", Examples in this tutorial will make it more clear.

PHP Array Operator
In this tutorial we will study about array operators, array operator '+' is used to get union of arrays and the rest of the operators like '==','===' works same they do on the variables. Examples in this tutorial will make it more clear.

PHP Instanceof Operator
In this tutorial we will study about instanceof operator, instanceof operator checks that a variable is instantiated object of a certain class or not. Examples in this tutorial will make it more clear.