Zend
200-530 · Question #470
Consider the following PHP script: <?php Zend 200-530 Exam $fp = fopen('file.txt', 'r'); $string1 = fgets($fp, 512); fseek($fp, 0); ?> Which of the following functions will give the same output as…
The correct answer is A. rewind(). See the full explanation below for the reasoning.
Question
Consider the following PHP script: <?php Zend 200-530 Exam $fp = fopen('file.txt', 'r'); $string1 = fgets($fp, 512); fseek($fp, 0); ?> Which of the following functions will give the same output as that given by the fseek() function in the above script?
Options
- Arewind()
- Bfgets()
- Cfgetss()
- Dfile()
How the community answered
(55 responses)- A75% (41)
- B9% (5)
- C4% (2)
- D13% (7)
Community Discussion
No community discussion yet for this question.