A constant is a value that cannot be changed once it is set, and it is created using the define() function instead of a dollar sign variable. Constants are usually written in all uppercase letters and do not use a $ before their name. This is different from a variable, which can be given a new value at any time while the script runs.