The fread() function used to reading and writing a file.
r - Open file for reading only the file position indicator is placed at the beginning of the file.
r+ -Open file for reading and writing the file position indicator is placed at the beginning of the file.
w - Open file for writing only. any exiting content will be lost.if the file does not exits,PHP attempts to create it.
w+ - Open file for reading and writing. any exiting content will be lost.if the file does not exits,PHP attempts to create it.
a - Open file for appending only. data is written to the end of an existing file. if the file does not exits ,PHP attempts to create it.
a+ - Open file for reading and appending data is written to the end of an existing file. if the file does not exits ,PHP attempts to create it.
Copyright ©2022 coderraj.com. All Rights Reserved.