The example above demonstrates 2 simple uses for constants. In the first one we simply create a constant names const1 and then output it. As for the second example I created a constant array using the define() and array() functions, then to print the values of the array I had to use a foreach loop which allowed me to easily display the three names.