Home > PHP & Programming > Quizzes > PHP Fundamentals Test
PHP Fundamentals Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 23% Most missed: “How do I typecast a variable to boolean?”
PHP Fundamentals Test
Time left 00:00
25 Questions

1. Self-contained collections of functions AND properties are referred to as
2. In PHP - functions using global variables must declare the variables by using
3. Which variable is not predefined by PHP?
4. Which of the following will this function output:
5. Can PHP be run on a Windows IIS server?
6. Which of the following is not a valid PHP variable declaration?
7. Which type is not supported by PHP?
8. What PHP function calculates the sum of the values in an array?
9. echo substr('Hello world' - -4); the right output is?
10. Which of the following is NOT a function of PHP session support?
11. What function sets the default timezone used by all date and time functions in a script?
12. True or False? Arrays in PHP can only hold the same data type.
13. Choose the string for which the POSIX regular expression ^[A-Za-z]$ matches.
14. Which of the following are examples of PHP comments?
15. How do you write 'Hello World' in PHP
16. Which function can be used to convert 'ff' to 255?
17. The statement header('Location: http://www.somesite.com'); will
18. Include files must have the file extension '.inc'
19. If a string is enclosed in double-quotes - PHP will interpret more escape sequences for special characters such as
20. Error reporting constants are used to adjust error reporting settings. Which of the following is NOT a valid error reporting constant?
21. The following code does what?
22. What separates a sequence of one or more characters used to specify the boundary between separate text regions?
23. Which function allows you to specify a start position of a string and length arguments to retrieve part of a string?
24. Which of the following string delimiting methods is known as the heredoc syntax?
25. How do you specify a string literal in PHP?