magic constants Flashcards

1
Q

__LINE__

A

The current line number of the file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

__DIR__

A

The directory of the file. If used inside an include, the directory of the included file is returned.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

__FUNCTION__

A

The function name as it was declared

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

__CLASS__

A

The class name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

__NAMESPACE__

A

The name of the current namespace.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly