Skip to content

Glossary: PHP Basics

class constant

Also written: self::

A constant declared inside a class with `const`, such as `FREE_SHIPPING` in `Order`, read inside the class as `self::FREE_SHIPPING`, where `self` means "this class".

Where the book teaches it

Related terms

constantclass