In PHP, the ______ function is used to open a file.

  • open()
  • fopen()
  • read()
  • include()
In PHP, the fopen() function is used to open a file. It takes the path to the file and the mode as parameters. This function returns a file handle or pointer that can be used for file operations, such as reading or writing data.
Add your answer
Loading...

Leave a comment

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