Q. Which PHP function is used to write data to a file?
β
Correct Answer: (A)
file_put_contents()
Explanation: file_put_contents() writes data to a file.