How will you convert the returned API into an XML object?
(a) SimpleElement()
(b) SimpleXMLElement()
(c) XMLElement()
(d) CovertXML()
(a) SimpleElement()
(b) SimpleXMLElement()
(c) XMLElement()
(d) CovertXML()
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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().