Zend
200-710 · Question #38
In order to create an object storage where each object would be stored only once, you may use which of the following? (Choose 2) A. SplFixedArray B. SplObjectStorage C. SplString D. spl_object_hash…
The correct answer is B. SplObjectStorage D. spl_object_hash. See the full explanation below for the reasoning.
Arrays
Question
In order to create an object storage where each object would be stored only once, you may use which of the following? (Choose 2)
A. SplFixedArray
B. SplObjectStorage
C. SplString
D. spl_object_hash
E. spl_same_object
Options
- ASplFixedArray
- BSplObjectStorage
- CSplString
- Dspl_object_hash
- Espl_same_object
How the community answered
(46 responses)- A13% (6)
- B80% (37)
- C4% (2)
- E2% (1)
Topics
#SplObjectStorage#spl_object_hash#object uniqueness#SPL data structures
Community Discussion
No community discussion yet for this question.