nerdexam
Zend

200-710 · Question #185

An object can be counted with count() and sizeof() if it...

The correct answer is D. None of the above. See the full explanation below for the reasoning.

Arrays

Question

An object can be counted with count() and sizeof() if it...

Options

  • Aimplements ArrayAccess
  • Bhas a public __count() method
  • Cwas cast to an object from an array
  • DNone of the above

How the community answered

(44 responses)
  • A
    5% (2)
  • B
    9% (4)
  • C
    2% (1)
  • D
    84% (37)

Topics

#count()#Countable interface#sizeof#object counting

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice