Next Oct 29 PreviousI told you to keep those folders tidy!
Which of the following functions can be used to delete a file. Choose all that apply:
A. rm()
B. del()
C. unlink()
D. fremove()
E. delete()
Answer
rm
and del
are command line commands to delete a file on UNIX and Windows systems respectively, but they aren't PHP functions.
delete()
and fremove()
are just made up functions. But delete()
does have an entry in the PHP manual (that's also a way to deal with an hint).
The correct answer is unlink()
(which is a UNIX command too).