Which of the following functions is used to delete a file?
unlink()
Correct:
unlink()
Explanation:
Answer option C is correct.
The unlink() function is used to delete a file.
Answer option E is incorrect. The rmdir() function is used to remove directories.
Answer option A is incorrect. The delete SQL statement is used to delete rows.
Answer option B is incorrect. The unset() function is used to unset a variable.
Answer option D is incorrect. delete() is not a valid function in PHP.
Reference: https://www.php.net/manual/en/function.unlink.php