Constants are like variables, except that once they are defined, they cannot be changed or undefined. A constant name does not need a leading dollar sign ($).
To create a constant, use the define() function. It takes two main parameters: the name of the constant and its value.
You can also create a constant using the const keyword. While define() can be used anywhere, const is often used inside classes but works in the global scope too.
Constants are automatically global and can be used across the entire script, even inside functions, without using the global keyword.
You can also create an array constant using the define() function.