I have a SOAP response whose var_dump looks like this:
object(stdClass)[14]
public 'GetClientsResult' =>
object(stdClass)[15]
I can’t figure out how to parse this for the life of me, I’ve never used stdClass before.
How can I parse this response in PHP?
For starters, you can cast it into an array (assuming the object is stored in
$response):Or you can access things by: