I want to access the array properties I get as a SOAP-Resonse from a server. I use the php soapclient and and get the following output when using
$response = $client->$action($clientID);
$array = json_decode(json_encode($xml), True);
Unfortunately I cannot get access to the properties such as 'tid', 'answer' etc. How can I do this (I can either use php or c# where I import the result)
Array
(
[0] => Array
(
)
[1] => Array
(
[0] => stdClass Object
(
[tid] => 4103
[tdid] => 191
[qid] => 4103-1
[question] => Wie würden Sie Ihren Gesundheitszustand im Allgemeinen beschreiben ?
[answer] => Ausgezeichnet.
[score] => 100
[date] => 1558593404
[Fields] => Array
(
)
)
[1] => stdClass Object
(
[tid] => 4103
[tdid] => 191
[qid] => 4103-2
[question] => Im Vergleich zum vergangenen Jahr, wie würden Sie Ihren derzeitigen Gesundheitszustand beschreiben ?
[answer] => Derzeit etwas besser als vor einem Jahr.
[score] => 75
[date] => 1558593404
[Fields] => Array
(
)
)