Using Constants in PHP

The value of Pi is: 3.14159
The value of gravity is: 9.81 m/s²

Understanding Constants

In PHP, constants are defined values that cannot be changed during script execution. Unlike variables, which can store different values and are mutable, constants are fixed and maintain their value throughout the script's lifecycle.