file_get_contents < PHP
The file_get_contents function reads an entire file into a string
$filename = '/path/to/test.txt';
$fileContents = file_get_contents($filename);
echo $fileContents;
// This is a test file.
The file_get_contents function reads an entire file into a string
$filename = '/path/to/test.txt';
$fileContents = file_get_contents($filename);
echo $fileContents;
// This is a test file.