1.

How will you convert the returned API into an XML object?(a) SimpleElement()(b) SimpleXMLElement()(c) XMLElement()(d) CovertXML()

Answer» The correct option is (b) SimpleXMLElement()

For explanation I would say: file_get_contents() is the preferred way to read the contents of a file into a string. It will use memory mapping techniques if supported by your OS to enhance performance. The API returned by the method file_get_contents() can be converted into an XML object using the method SimpleXMLElement().


Discussion

No Comment Found

Related InterviewSolutions