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)- B4% (1)
- C8% (2)
- D85% (22)
- E4% (1)
Community Discussion
No community discussion yet for this question.