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

  • MySQL-related functions

  • 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 C.1.

Table C.1. PHP’s characters for performing operations or making comparisons.
Operators
SYMBOLMEANINGTYPEEXAMPLE
=is assigned the value ofassignment$n = 1
.concatenationmiscellaneous$var = $x . $y
==is equal tocomparison ...

Get PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.