Magic constants
Magic constants are keywords that are replaced with information about
their own location in the source code: their file and line, and the
function, class, trait, namespace, or property hook enclosing them.
Despite their name, they are not actual constants:
defined and constant do not
recognize them, and a constant of the same name created with
define does not affect them. They are case-insensitive.
When used outside of the relevant context (e.g.
Example #1 Using magic constants The above example will output: App\helper App\helper App\Greeter App\Greets App\Greets::greet greet App |