43 require_once
'XML/RPC2/Exception.php';
44 require_once
'XML/RPC2/Backend.php';
71 $type = strtolower($explicitType);
72 $availableTypes = array(
'datetime',
'base64',
'struct');
73 if (in_array(
$type, $availableTypes)) {
74 if (
$type==
'struct') {
75 if (!(is_array($value))) {
82 while (list($k, $v) = each($value)) {
83 $new[
"xml_rpc2_ugly_struct_hack_$k"] = $v;
88 $value2 = (string) $value;
89 if (!xmlrpc_set_type($value2,
$type)) {