nerdexam
Zend

200-530 · Question #121

How to read a single line, no matter how long from an file opened in the example below? $fp = fopen("my_file.txt", "w");

The correct answer is D. fgetss($fp). See the full explanation below for the reasoning.

Question

How to read a single line, no matter how long from an file opened in the example below? $fp = fopen("my_file.txt", "w");

Options

  • Afgets($fp);
  • Bfgets($fp, -1);
  • Cfread($fp, 1024);
  • Dfgetss($fp);
  • ENone of the above

How the community answered

(26 responses)
  • B
    4% (1)
  • C
    8% (2)
  • D
    85% (22)
  • E
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice