DEV Community

Discussion on: World's Smallest Quine, "Guaranteed"

Collapse
 
cwreacejr profile image
Charles Reace

readfile() reads the contents of the specified file and sends them directly to the output buffer.

__FILE__ is a built-in PHP "magic" constant that contains the full path to the current source code file. (If you're inside an include file at that point, then it will be that file, not the "main" file that included it.)