What is fopen function PHP?

PHP fopen() is inbuilt function which is used to open a file or an URL.

$file_handle = fopen("sample-file.txt", "w");

This function return FALSE and an error if fails to open a file.

Learn more about the similar topics:
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.