To ensure a file resource is closed and memory is freed up, you should use the ________ function in PHP.

  • close_file()
  • flush()
  • fclose()
  • release_memory()
The fclose() function in PHP is used to close an open file resource. This ensures that the file is properly closed, and associated memory is released.
Add your answer
Loading...

Leave a comment

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