PHP - Magic Tokens

PHP provides useful magic constants for fetching the current line number (LINE), file path (FILE), directory path (DIR), function name (FUNCTION), class name (CLASS), method name (METHOD) and namespace (NAMESPACE).

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License