Zend
200-530 · Question #125
How can precisely one byte be read from a file, pointed by $fp? (Choose 2)
The correct answer is A. fread($fp, 1); D. fgetc($fp). See the full explanation below for the reasoning.
Question
How can precisely one byte be read from a file, pointed by $fp? (Choose 2)
Options
- Afread($fp, 1);
- Bfgets($fp, 1);
- Cfgetss($fp, 1);
- Dfgetc($fp);
- EAll of the above
How the community answered
(21 responses)- A86% (18)
- C10% (2)
- E5% (1)
Community Discussion
No community discussion yet for this question.