PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $json = '{"success":true,"data":{"SOAP-ENV:Envelope":{"$":{"xmlns:SOAP-ENV":"http://schemas.xmlsoap.org/soap/envelope/"},"SOAP-ENV:Header":"","SOAP-ENV:Body":{"CreatePickupReply":{"$":{"xmlns":"http://fedex.com/ws/pickup/v15"},"HighestSeverity":"SUCCESS","Notifications":{"Severity":"SUCCESS","Source":"disp","Code":"0000","Message":"Success","LocalizedMessage":"Success"},"TransactionDetail":{"CustomerTransactionId":"CreatePickupRequest_v15","Localization":{"LanguageCode":"EN","LocaleCode":"ES"}},"Version":{"ServiceId":"disp","Major":"15","Intermediate":"0","Minor":"0"},"PickupConfirmationNumber":"206","Location":"LNNA"}}}}}'; $decode = json_decode($json, true); var_dump($decode['data']["SOAP-ENV:Envelope"]["SOAP-ENV:Body"]);
Show:  
Copy Clear