type = "datetime"; //定义对象 $obj->scalar = "20040420t13:32:40"; $obj->timestamp = 1082460760; $request = xmlrpc_encode_request('dummyserver', $obj); //为php生成xml $response = do_call($host, $port, $request); //调用函数 $xmlrpctype = xmlrpc_get_type($response); //获取xmlrpc类型 print_r($xmlrpctype); //输出结果 ?>