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.)
PHP in 26 bytes:
Cool! How does this work, though? I'm not very familiar with PHP.
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.)PS: Depending on your PHP configuration, you could shorten it by 3 bytes to...
TBH this is not a "real" quine as a quine cant read its own source.