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.
Loading...
Related Quiz
- The continue statement in PHP is used to ______ the rest of the current loop iteration and continue with the next one.
- A variable declared outside all functions in PHP is considered to have a ______ scope.
- How can we access the data sent through the URL with the POST method?
- echo and print are functions in PHP.
- What are some common uses of the fread() function in PHP?