Check out Scrivo

Do you want to try out Scrivo? Then here's a demo for you that does not just get your feet wet but lets you plunge right in.

Contact us

For more information, please contact us. We're happy to help you out!

Next Oct 29 Previous

I 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()


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).