You should always close a file in PHP using the fclose() function after you're done writing to it.

  • TRUE
  • FALSE
Absolutely! It is good practice in PHP to close the file after you have finished writing to it. This is done using the fclose() function, which releases the resources associated with the file and ensures proper cleanup. By closing the file, you also free up system resources and make them available for other operations.
Add your answer
Loading...

Leave a comment

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