PrepAway - Latest Free Exam Questions & Answers

which of the following would NOT achieve this goal?

SimpleXML provides the ability to iterate over items in an XML document, as well as access
items within it as if they were object properties. When creating your own classes to access
data, implementing which of the following would NOT achieve this goal?

PrepAway - Latest Free Exam Questions & Answers

A.
__toString

B.
ArrayAccess

C.
__get/__set

D.
Iterator

Explanation:

2 Comments on “which of the following would NOT achieve this goal?

    1. Alexander says:

      __get/__set is necessary for:
      >> as well as access items within it as if they were object properties

      So, the correct answer is __toString.




      3



      0

Leave a Reply

Your email address will not be published. Required fields are marked *