Discover hidden truths with magic constants in PHP We’ll be exploring PHP’s Magic Constants. __LINE__ displays the current line number of the file. __FILE__ displays the full path and filename of the file. __DIR__ displays the directory of the file. __FUNCTION__ displays the function name, or {closure} for anonymous functions. __CLASS__ displays the class name. The class name includes the namespace it was declared in. __TRAIT__ displays the trait name. The trait name includes the namespace it was declared in. __METHOD__ displays the class method name. __NAMESPACE__ displays the name of the current namespace. Recap: Review where we left off