Q. Which function would you use to check if a file exists in PHP?
β
Correct Answer: (A)
file_exists()
Explanation: file_exists() checks whether a file or directory exists.