Certified PHP Developer Learning Resources File handling Basics

File handling Basics

PHP supports this feature using the following functions:

  • fopen: To open a file in a particular mode, like r: read, w: write, a: append etc.
  • feof: To check whether the pointer has reached at the end of the file or not.
  • fclose: To close the file.
  • fgets: To extract the content line by line.
  • fgetc: To extract the content character by character.
 For Support