PHP

By no means could this appendix replace the value of the PHP manual, but the tables and information listed here might save you a trip online to view it. In this section you’ll find lists of

  • Operators, comparators, and their precedence

  • Date- and time-formatting parameters and functions

  • Regular expression characters and classes

  • And more!

Operators and comparators

Many of PHP’s operators and comparators (symbols used to make comparisons) are self-evident. Still, to be explicit, I’ve listed most of them in Table B.1. Along with these, don’t forget about the variations on the assignment operators: .=, +=, -=, *=, and /=.

Table B.1. PHP’s characters for performing operations or making comparisons.
PHP Operators
SymbolMeaningType
=is assigned the value ...

Get PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.