magic constants Flashcards
1
Q
__LINE__
A
The current line number of the file.
2
Q
__FILE__
A
The full path and filename of the file. If used inside an include, the name of the included file is returned.
3
Q
__DIR__
A
The directory of the file. If used inside an include, the directory of the included file is returned.
4
Q
__FUNCTION__
A
The function name as it was declared
5
Q
__CLASS__
A
The class name.
6
Q
__NAMESPACE__
A
The name of the current namespace.