Home »
MCQs »
PHP MCQs
Which PHP function reads a single line from a file?
149. Which PHP function reads a single line from a file?
- readline()
- getline()
- fget()
- fgets()
Answer: D) fgets()
Explanation:
The PHP fgets() function reads a single line from a file.