Web Services are very useful when we need to send and receive information from third-party clients. These Web Services, generally, output or return the response in an XML format.
XML can be easily parsed in PHP using the simplexml_load_string or the SimpleXMLElement object. Now, manipulating this object use to be a pain in the you know where.
Using the power of PHP JSON(decode/encode) function we can do this easily and create a usable PHP array.