Question:Consider the following PHP script, which reads a file, line-by-line, from a text file. Which function call should be inserted in place of the question marks in order for the script to function correctly?
<?php
$file = fopen("test", "r");
while(!feof($file)) {
   echo ????????????;
}
fclose($file);
?>
 

A file_get_contents($file) 

B file($file) 

C read_file($file) 

D fgets($file) 

E fread($file) 

+ Answer
+ Explanation
+ Report
Total Preview: 1040

Copyright © 2024. Powered by Intellect Software Ltd