Dan Libby was kind enough to contribute two helper functions that make it easier to translate to and from PHP arrays. This makes it easier to deal with complex structures. At the moment support is limited to int, double, string, array and struct datatypes; note also that all PHP arrays are encoded as structs due to PHP not being (easily) able to tell the difference between a hash and a linear array.
These functions reside in xmlrpc.inc
.
$arr=php_xmlrpc_decode(
$xmlrpc_val)
;$xmlrpc_val
;
Returns a PHP array stuffed with the values found in the xmlrpcval $xmlrpc_val
, translated into native PHP types.