Skip to content

Glossary: PHP Basics

match

An expression that compares one value with `===` against several cases and gives back the result of the first match, with `default` for the rest. It's neater than a chain of `elseif`s.

Where the book teaches it

Related terms

=== (strict comparison)if statement