Here is my XML object: http://pastebin.com/0L8vf0ja
Which was created from:
<?xml version="1.0" encoding="utf-8"?>
<methodResponse><params><param><value><struct><member><name>result</name><value><struct><member><name>application_instance_id</name><value><i4>89</i4></value></member></struct></value></member><member><name>status</name><value><i4>0</i4></value></member></struct></value></param></params></methodResponse>
I know upto this level:
$ApplicationInstanceID = (int)(string)$data->params->param->value->struct->member->
But from here, as you see in the pastebin, it becomes an array of objects – and I am not sure how to proceed.
Any ideas, please?
By accessing it as an array:
But, if you have it enabled, the
xmlrpc_decodefunction is perhaps easier to use.