- json_decode: documentation ( source)
- print_r: documentation ( source)
<?php
$url = 'http://adtech-txws-adgtx.stg.iad2.nyt.net/taxonomy-exceptions';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$json = json_decode($response, true);
curl_close($ch);
print_r($json);