php magic constants

__FILE__, __DIR__, __FUNCTION__, __CLASS__, __METHOD__, __TRAIT__ and __NAMESPACE__   PHP Magic Contants : Here are eight magical constants in PHP that change depending on where they are used.Some of these magical constants may provide useful information both within object-oriented programs as well as within procedural programs. The __FILE__ constant is the current filename, __LINE__ is the current line number, __FUNCTION__ is the current function name, __METHOD__ is the current method name (if any), and __CLASS__ is the current class name (if any). Starting with PHP 5.3.0, __DIR__ is the directory that__FILE__ is in and __NAMESPACE__ is the current name‐ space. … Continue reading php magic constants