PHP Quiz

Answer 10 questions and see how you score!

1. Which function determines if garbage collection is enabled?

2. Which function converts an array to a string?

3. Which function returns memory usage of the script?

4. What will count(null) return?

5. What does strict_types=1 enforce?

6. Which function encodes data to JSON?

7. What is the output of: echo empty([]);

8. Which function retrieves all declared classes?

9. How do you start a session in PHP?

10. Which function checks if a variable is empty?