1.

How will you convert the returned API into an XML object?(a) SimpleElement()(b) SimpleXMLElement()(c) XMLElement()(d) CovertXML()This question was addressed to me in a national level competition.This question is from Accessing the WebPagetest API in portion Sockets of JavaScript

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