Sample PHP 5 XPO Logistics LTL XML Rating

ORIGZIP:  
DESTZIP:  
  
 

Value of <TotalCharge> is: 2844.31
Value of <Discount> is: 711.08
Value of <TotalAccessorialCharges> is: 1484.10
Value of <NetCharge> is: 3617.33
Value of <TransitTime> is: 2

Here is the dump of the XML output for Rating:
93727 92591 P 775 667 205.64 1371.62 100 555 265.35 1472.69 1222 2844.31 533.31 22.00 15.50 913.29 1484.10 711.08 3617.33 2 04/25/24 This XPO Logistics shipping price quote is based on information entered into this query including pickup and delivery locations, commodities, weights, appropriate discounts, and accessorial services. Routing by a different freight company may result in different charges. This quote may not include additional accessorial service charges (e.g. Inside Delivery, Liftgate Truck, etc.) that could be required at delivery. XPO Logistics authorizes you to use XPO Logistics rate quote and tracking systems solely for the purpose of conducting business with XPO Logistics and for no other purpose. Your use shall be limited to only those shipments in which you are the shipper, consignee or authorized agent. Any other use of the XPO Logistics systems and information is strictly prohibited. (c) 2024 XPO Logistics. All Rights Reserved. XPO Logistics's logos, trademarks and company names may not be used without prior permission. Email us at LTLOTWDisputes2@xpo.com. Terms and Conditions at ltl.xpo.com/Help/terms.html. Privacy Policy at ltl.xpo.com/Help/privacy.html?dest=privacy. CA CA 04/29/24

And here it is displayed as a formatted array:
SimpleXMLElement Object ( [@attributes] => Array ( [schemaVersion] => 1.0 ) [OriginZip] => 93727 [DestinationZip] => 92591 [ChargeCode] => P [Item] => Array ( [0] => SimpleXMLElement Object ( [CmdtyClass] => 775 [Weight] => 667 [Rate] => 205.64 [Charge] => 1371.62 ) [1] => SimpleXMLElement Object ( [CmdtyClass] => 100 [Weight] => 555 [Rate] => 265.35 [Charge] => 1472.69 ) ) [ItemTotal] => SimpleXMLElement Object ( [TotalWeight] => 1222 [TotalCharge] => 2844.31 ) [AccessorialCharges] => SimpleXMLElement Object ( [OtherAccessorialCharges] => Array ( [0] => 533.31 [1] => 22.00 [2] => 15.50 ) [FuelSurcharge] => 913.29 [TotalAccessorialCharges] => 1484.10 ) [Discount] => 711.08 [NetCharge] => 3617.33 [TransitTime] => 2 [EffectiveDate] => 04/25/24 [Disclaimer] => This XPO Logistics shipping price quote is based on information entered into this query including pickup and delivery locations, commodities, weights, appropriate discounts, and accessorial services. Routing by a different freight company may result in different charges. This quote may not include additional accessorial service charges (e.g. Inside Delivery, Liftgate Truck, etc.) that could be required at delivery. XPO Logistics authorizes you to use XPO Logistics rate quote and tracking systems solely for the purpose of conducting business with XPO Logistics and for no other purpose. Your use shall be limited to only those shipments in which you are the shipper, consignee or authorized agent. Any other use of the XPO Logistics systems and information is strictly prohibited. (c) 2024 XPO Logistics. All Rights Reserved. XPO Logistics's logos, trademarks and company names may not be used without prior permission. Email us at LTLOTWDisputes2@xpo.com. Terms and Conditions at ltl.xpo.com/Help/terms.html. Privacy Policy at ltl.xpo.com/Help/privacy.html?dest=privacy. [OriginState] => CA [DestinationState] => CA [EstDeliverDate] => 04/29/24 )