0 votes
in PHP by

What is the use of fopen() function in PHP?

a) The fopen() function is used to open folders in PHP

b) The fopen() function is used to open remote server

c) The fopen() function is used to open files in PHP

d) None of the above

1 Answer

0 votes
by
c) The fopen() function is used to open files in PHP

Description: PHP fopen() function is used to open file or URL and returns resource. The fopen() function accepts two arguments: $filename and $mode. The $filename represents the file to be opended and $mode represents the file mode for example read-only, read-write, write-only etc.

Related questions

+1 vote
asked May 11, 2022 in PHP by sharadyadav1986
0 votes
asked May 13, 2022 in PHP by john ganales
...