Name Description
| __line__ |
The current line number of the file. |
| __file__ |
The full path and filename of the file. If used inside an include, the name of the included file is returned. Since PHP 4.0.2, __file__ always contains a absolute path with symlinks resolved whereas in older versions it contained r Elative path under some circumstances. |
| __dir__ |
The directory of the file. If used inside an include, the directory of the included file is returned. This is equivalent to DirName (__file__). This directory name does not has a trailing slash unless it is the root directory. (Added in PHP 5.3.0.) |
| __function__ |
The function name. (Added in PHP 4.3.0) As of PHP 5 This constant returns the function name as it is declared (case-sensitive). In PHP 4 It value is always lowercased. |
| __class__ |
The class name. (Added in PHP 4.3.0) As of PHP 5 This constant returns the class name as it is declared (case-sensitive). In PHP 4 It value is always lowercased. |
| __method__ |
The class method name. (Added in PHP 5.0.0) The method name is returned as it was declared (case-sensitive). |
| __namespace__ |
The name of the current namespace (case-sensitive). This constant was defined in Compile-time (Added in PHP 5.3.0). |
For more detailed information, please click