Zend PHP 5.3 Certification Exam
Functions and Arrays
Object Oriented Programming
Data Format & Types
Strings and Patterns
Databases and SQL
Web Features 1
Which of the following functions is used to delete a file?
delete SQL statement
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: PHP 5 Manual, Contents: "unlink()"
© 2013 Zend PHP Certification Exam