PHP Constants

Constant Example 1: SITE_NAME

Site Name: Linkedin

Constant Example 2: MAX_ATTEMPTS

Max Attempts Allowed: 5

Explanation

Constants do not use $ sign at all. Once defined it can't be changed, a variable can be reassigned anytime but a constant is locked in for the rest of the script. Written in all caps by convention so easy to spot in code.