define a global constant in php
We can define a global constant in php using the following way :
This constant can be used inside functions and classes also. Trying to change this value will leads to error. It is a good practice to use global constants wherever necessary.