Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

What is the purpose of _FILE_ constant?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

_FILE_ − The full path and filename of the file. If used inside an include,the name of the included file is returned. Since PHP 4.0.2, _FILE_ always contains an absolute path whereas in older versions it contained relative path under some circumstances.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How will you define a constant in PHP?require_once(), require(), include(). What is difference between them?