How to read a entire file in one line PHP script a. file_content() b. fgetc() c. read_file() d. get_file_contents()

PHP
$handle = fopen("inputfile.txt", "r");
if ($handle) {
    while (($line = fgets($handle)) !== false) {
        // process the line read.
    }

    fclose($handle);
} else {
    // error opening the file.
} 
Source

Also in PHP: