Advanced
PHP
Q93 / 100
What are PHP SPL data structures and their advantages over arrays?
Correct! Well done.
Incorrect.
The correct answer is B) SplStack, SplQueue, SplHeap, SplDoublyLinkedList provide semantically correct types with O-optimal operations vs PHP arrays used as all-purpose structures
B
Correct Answer
SplStack, SplQueue, SplHeap, SplDoublyLinkedList provide semantically correct types with O-optimal operations vs PHP arrays used as all-purpose structures
Explanation
Using SplStack enforces LIFO semantics. SplMinHeap gives O(log n) min-element access. They communicate intent and enforce correctness over generic arrays.
Progress
93/100