Operators

An operator takes one or more values, or expressions in programming jargon, and yields another value, so that the construction itself becomes an expression.

<?php

// not operator, unary
$a = !$b;

// plus operator
$c = $d + 2;

// ternary operator
$e = $d ? 3 : 2;

?>

Documentation

See also PHP operators and How to use PHP operators.

Related : Short Tags, Short Syntax, Operator Overloading, Comparison, Operand, Operator Precedence, Precedence, Error Suppression, instanceof