PHP Intermediate
This assessment focuses on your intermediate-level knowledge of PHP, such as form handling, arrays, error handling, and working with files and sessions. Ideal for developers who’ve already built small applications or are currently learning dynamic PHP functionalities. Boost your skills further with W3Schools PHP Tutorial and PHP Intermediate Course – GeeksforGeeks.
1
What is the difference between `include` and `require` in PHP?
2
Which of the following is used to declare a constant in PHP?
3
Which function is used to check if a variable is set and is not NULL?
4
Which superglobal variable holds information about headers, paths, and script locations?
5
What is the output of `count([1, 2, 3])`?
6
Which of the following is not a valid PHP data type?
7
Which symbol is used to access a variable in PHP?
8
What is the correct way to start a session in PHP?
9
Which function is used to send raw HTTP headers?
10
Which operator is used for concatenation in PHP?
11
What does `===` mean in PHP?
12
Which of these is the correct way to define an array in PHP?
13
How do you create a function in PHP?
14
Which function is used to redirect the user to another page?
15
What is the file extension of a PHP file?