PHP Certification Quiz

Test your knowledge to earn your official course certificate!

1. Which function is used to redirect a user to another page?
2. How do you add a single-line comment in PHP?
3. All variables in PHP start with which symbol?
4. What is the correct way to create a function in PHP?
5. Which is the correct way to define an array in PHP?
6. Which function is used to output the data type and value of a variable?
7. What is the correct way to open the file "time.txt" as readable?
8. The PHP syntax is most similar to:
9. What is the correct way to include the file "time.inc"?
10. Which superglobal variable holds information about headers, paths, and script locations?
11. What does PHP stand for?
12. What is the correct way to end a PHP statement?
13. How do you get information from a form that is submitted using the "get" method?
14. Which variable is used to collect form data sent with both the GET and POST methods?
15. In PHP you can use both single quotes and double quotes for strings:
16. Include files must have the file extension ".inc":
17. How do you write "Hello World" in PHP?
18. PHP server scripts are surrounded by delimiters, which?
19. Which operator is used to concatenate strings in PHP?
20. When using the POST method, variables are displayed in the URL: