Skip to content

Glossary: PHP Basics

ternary operator

Also written: ? :, ternary

An operator that picks one of two values: `condition ? ifTrue : ifFalse`.

Where the book teaches it

Related terms

?? (null coalescing operator)match