Q. How will you convert the returned API into an XML object?
β
Correct Answer: (B)
SimpleXMLElement()
Explanation: The API returned by the method file_get_contents() can be converted into an XML object using the method SimpleXMLElement().