Here's the response from a WSDL
<return code='6000'></return>
I would like to return the code value. Can i use simplexml_load_string() ?
simplexml_load_string()
Yes, you can.
$xml = simplexml_load_string($str); $code = (int) $xml->attributes()->code;
CodePad.