In PHP, the constants are similar to variables in PHP, but they are defined once and the value can't be changed. They are useful for storing values and they can repeat a script that ae not modified. The constants can also make code more readable and maintain better.