<<< Previous question <<< Question ID#0749.md >>> Next question >>>
What is output of the following function call (assuming that foo.txt exist and contains text)?
$output = file('foo.txt');
- A) an array where every entry is a line from the file foo.txt;
- B) a file handle that can be used in subsequent calls such as fread;
- C) true if the file exists, false if not;
- D) a string containing the contents of foo.txt;
Answer
Answer: A