PHP Quiz

Answer 10 questions and see how you score!

1. Which PHP function registers a function to be executed on script shutdown?

2. Which function is used to clone an object?

3. What is the output of: echo strlen("");

4. Which keyword is used to stop script execution?

5. Which function trims characters from both sides of a string?

6. What is the output of: echo (int)("10 apples");

7. Which function determines if garbage collection is enabled?

8. What is the output of: echo (float)"3.14abc";

9. Which function returns the current Unix timestamp?

10. Which function converts an object to an array?