The title of this article should be file(), but due to technical restrictions, cannot contain parenthesis.

Reads an entire file into an array.

Arguments Edit

void file ({{{params}}})

Argument Inclusion Edit

(PHP 3, PHP 4, PHP 5)

Examples Edit

Example 1: Edit

$code = file('');
print $code;

Output Edit

//output for this example would render the html source that would be returned if you visited
  through your browser.
For more details on this function, visit its entry in the php manual.