PHP Constants

First constant: UWM

Second constant: 3

Regular variable: College Student

Explanation

A constant is a named value that is meant to stay the same while the PHP program runs. After a constant is created, I use its name without a dollar sign. A variable uses a dollar sign and its value can be changed later in the program. Constants are useful for values that should remain unchanged.

Back to Activity 3