Quiz 2
1. What is the main benefit of using a Generator?
2. Which keyword is essential for creating a Generator?
3. What is the purpose of a WeakMap in PHP 8.0?
4. What does SPL stand for?
5. When should you use SplFixedArray over a normal array?
6. How does PHP primarily manage memory for objects?
7. What is a Closure in PHP?
8. Which keyword is used in a Closure to access variables from the outer scope?
9. Which magic method allows an object to be called like a function?
10. Which function returns the current memory usage of a PHP script?
Previous Next