Quiz Answer Key and Fun Facts
1. The date() function returns a formatted date or time. date('Y') would return which of following?
2. If you wanted to capitalize the first letter of each word in a string, which function would you use?
3. The function strip_tags($text, ' < p >'); will return what?
4. The first parameter accepted by the mail() function is the subject line of the e-mail.
5. Which of the following is not a valid function in the PHP MySQL library?
6. The file_exists() function does what?
7. If magic_quotes is turned on, PHP runs addslashes() on all GET, POST, and COOKIE data by default.
8. To break a string into an array you would use this function...
9. This function merges two or more arrays into one array...
10. There are several built-in functions in PHP that can be used to return a random integer.
Source: Author
kwdesigner
This quiz was reviewed by FunTrivia editor
crisw before going online.
Any errors found in FunTrivia content are routinely corrected through our feedback system.