PHP — P71: Magic Constants
Published in
3 min readJul 23, 2022
We’ll be exploring PHP’s Magic Constants.
- __LINE__ displays the current line number of the file.
- __FILE__ displays the full path and filename of the file.
- __DIR__ displays the directory of the file.
- __FUNCTION__ displays the function name, or {closure} for anonymous functions.
- __CLASS__ displays the class name. The…