What is the significance of the define() function in PHP?

The define() function in PHP is used to define a constant. Constants are like variables, but their value cannot be changed once they are defined. This can be useful for defining values that should not be altered throughout the execution of a script.

define("PI", 3.14);
echo PI;