<<< Previous question <<< Question ID#0294.md >>> Next question >>>
Consider the following PHP script:
$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?
- A)
rewind()
- B)
fgets()
- C)
fgetss()
- D)
file()
Answer
Answer: A