Braintree\Xml::buildArrayFromXml PHP Method

buildArrayFromXml() public static method

public static buildArrayFromXml ( string $xml ) : array
$xml string
return array
    public static function buildArrayFromXml($xml)
    {
        return Xml\Parser::arrayFromXml($xml);
    }

Usage Example

Example #1
0
 public function put($path, $params = null)
 {
     $response = $this->_doRequest('PUT', $path, $this->_buildXml($params));
     $responseCode = $response['status'];
     if ($responseCode === 200 || $responseCode === 201 || $responseCode === 422 || $responseCode == 400) {
         return Xml::buildArrayFromXml($response['body']);
     } else {
         Util::throwStatusCodeException($responseCode);
     }
 }
All Usage Examples Of Braintree\Xml::buildArrayFromXml