nerdexam
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)
  • A
    75% (41)
  • B
    9% (5)
  • C
    4% (2)
  • D
    13% (7)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice