Home » PHP » PHP File Handling » Question
  1. Which one of the following function is capable of reading a specific number of characters from a file?
    1. fget()
    2. fileget()
    3. filegets()
    4. fgets()
    5. None of these
Correct Option: D

Its prototype is string fgets(resource handle [, int length]). If the optional length parameter is omitted, 1024 character is assumed.



Your comments will be displayed only after manual approval.