Constants in PHP

School: UWM
Year: 2026

Constants are identifiers whose values cannot change once they are defined. Unlike variables, constants do not use a dollar sign and cannot be reassigned later in the program. Variables can store changing data, while constants remain fixed throughout execution. Constants are useful for values such as configuration settings, site names, or fixed numerical values.