PHP File Closing-fclose() function with example

aimtocode

PHP File Closing-fclose():

The PHP fclose() function is used to close an open file pointer.

Syntax:

  ool fclose ( resource $handle ) 

Example:

Here,

  • “fclose” is the PHP function for closing an open file
  • “$handle” is the file pointer resource.

Read Also:


aimtocode