0
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <BalanceResponse xmlns="http://gogogo.com/v1">
            <UserBalance xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                <Currency>IDR</Currency>
                <Real>0.0000</Real>
            </UserBalance>
        </BalanceResponse>
    </s:Body>
</s:Envelope>

How do I parse these into array? I've tried

(array) simplexml_load_string($xmlString)

, but it always return empty.

ethan17
  • 59
  • 6
  • 1
    Does this answer your question? [How to convert SOAP response to PHP Array?](https://stackoverflow.com/questions/21777075/how-to-convert-soap-response-to-php-array) – Haridarshan Jul 07 '21 at 10:46

0 Answers0