The fwrite() function in PHP is used to ______.

  • read files
  • write to files
  • delete files
  • append to files
The fwrite() function in PHP is used to write content to a file. It takes the file handle obtained from fopen() as the first argument and the content to be written as the second argument. This function returns the number of bytes written or false on failure. It is commonly used to write data to files in PHP.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *