array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.xmlrpc-decode.php', 1 => 'xmlrpc_decode', ), 'up' => array ( 0 => 'ref.xmlrpc.php', 1 => 'XML-RPC 函数', ), 'prev' => array ( 0 => 'function.xmlrpc-decode-request.php', 1 => 'xmlrpc_decode_request', ), 'next' => array ( 0 => 'function.xmlrpc-encode-request.php', 1 => 'xmlrpc_encode_request', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/xmlrpc/functions/xmlrpc-decode.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.1.0, PHP 5, PHP 7)
xmlrpc_decode — 将 XML 解码为原生 PHP 类型
此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担。
xml
XMLRPC 方法返回的 XML 响应。
encoding
iconv 支持的输入编码。
根据 XMLRPC 方法的响应返回数组、整数、字符串或布尔值。
参阅 xmlrpc_encode_request() 示例。