Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 573 Bytes

0749.md

File metadata and controls

20 lines (15 loc) · 573 Bytes

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