Below are the name some of the constants in PHP and their purpose:
_LINE_ – It represents the current line number of the file.
_FILE_ – It represents the full path and filename of the file. If used inside an include,the name of the included file is returned.
_FUNCTION_ – It represents the function name.
_CLASS_ – It returns the class name as it was declared.
_METHOD_ – It represents the class method name.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.
We use cookies to ensure that we give you the best experience and use cookies in order to personalize the advertising that you see on our website. Read more about our Privacy Policy.Got it!