PHP Constants

School: University of Wisconsin-Milwaukee

Course: INFOST 440

Explanation

A constant is a value that CANNOT be changed after it has been created. Constants are useful for information that should stay the same throughout an entire program. Variables are different because they can have their values changed while the program is running. Constants also do not use a dollar sign when they are referenced in PHP code.

Back to Start