PHP offers constants which their value will not be reassigned regardless of ehat variables do so their value will be consistent.
Constants definitions: Constants do not have $ before their name and by convention they will be named with upercase letters.Constants have global scope which can be accessible within the function or even any where in your scripts after that they defined.
Example:

define(MYNAME, "Jhon");

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.