Constants in PHP

Examples of Constants

The value of gravitational acceleration is 9.81 m/s2

The value of Pi is 3.14159

Explanation:

Constants are like variables, but their values can’t be changed once set. They are useful for values that remain the same throughout your code; like Pi or gravity. Unlike variables, constants don't use a dollar sign and are usually defined once, making them reliable and easy to reference.