A list of PHP Operator Types

The following operator types are available in PHP:

TypeDescription
ArithmeticPerform common arithmetical operations, such as addition and subtraction
AssignmentAssign values to variables
BitwisePerform operations on individual bits in an integer
ComparisonCompare values in a Boolean fashion (true or false is returned)
Error ControlAffect error handling (several new ones in PHP5)
ExecutionCause execution of commands as though they were shell commands
Incrementing/DecrementingIncrement or decrement a variable
LogicalBoolean operators such as AND, OR, and NOT that can be used to include or exclude (more on this in Chapter 4)
StringConcatenates (joins together) strings
ArrayPerform operations (such as append or split) on arrays

An exhaustive list and reference for each operator aren’t provided here because that information is easily available online at www.php.net (just go to the site, click documentation, and you’ll find operators listed in the table of contents). When an operator is used in this book, though, some of its peculiarities are discussed.



Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>