Magic Constants6:14 with Alena Holligan
Along with "Magic Methods", PHP also provides a large number of predefined constants to give us... a little more magic. These "Magic Constants" can provide details about our script and our environment. We'll look at a few "Magic Constants" that help us understand our classes and objects.
Add you own magic constants to the __toString method.
You need to sign up for Treehouse in order to download course files.Sign up