title: How to get shipping service name and rates only using USPS PHP API
body: <p>I have this code connects to USPS API and get detailed response long list of information and then, the servie name and rates.</p>
  
  <p>How can i make the response only for the service name and rates separated from each other by (|) ?</p>
  
  <pre><code>&lt;?php
  $devurl = "http://Production.ShippingAPIs.com/ShippingAPI.dll";
  $puburl = "http://Production.ShippingAPIs.com/ShippingAPI.dll";
  $service = "IntlRateV2";
  $userid = "xxxxx";
  $xml = rawurlencode('&lt;IntlRateV2Request USERID="xxxxx"&gt;
  &lt;Package ID="1ST"&gt;
      &lt;Pounds&gt;15&lt;/Pounds&gt;
      &lt;Ounces&gt;0&lt;/Ounces&gt;
      &lt;MailType&gt;Package&lt;/MailType&gt;
      &lt;ValueOfContents&gt;50&lt;/ValueOfContents&gt;
      &lt;Country&gt;Jordan&lt;/Country&gt;
      &lt;Container&gt;RECTANGULAR&lt;/Container&gt;
      &lt;Size&gt;LARGE&lt;/Size&gt;
      &lt;Width&gt;10&lt;/Width&gt;
      &lt;Length&gt;15&lt;/Length&gt;
      &lt;Height&gt;10&lt;/Height&gt;
      &lt;Girth&gt;0&lt;/Girth&gt;
      &lt;CommercialFlag&gt;N&lt;/CommercialFlag&gt;
      &lt;/Package&gt;  
  &lt;/IntlRateV2Request&gt;');
  $request = $devurl . "?API=" . $service . "&amp;xml=" . $xml;
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $request);
  curl_setopt($ch, CURLOPT_HEADER, false);
  curl_setopt($ch, CURLOPT_HTTPGET, true);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $response = curl_exec($ch);
  curl_close($ch);
  echo "&lt;pre&gt;";
  print_r($response);
  echo "&lt;/pre&gt;";
  </code></pre>