buildArrayFromXml() публичный статический Метод

public static buildArrayFromXml ( string $xml ) : array
$xml string
Результат array
Пример #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);
     }
 }
Пример #2
0
 public function xmlAndBack($array)
 {
     $xml = Braintree\Xml::buildXmlFromArray($array);
     return Braintree\Xml::buildArrayFromXml($xml);
 }