Forum und email

xmlrpc_decode

(PHP 4 >= 4.0.7, PHP 5)

xmlrpc_decode — Decodes XML into native PHP types

說明

mixed xmlrpc_decode ( string $xml [, string $encoding ] )
Warning

本函式是實驗性的。這個函式的行為、名稱、和關於此函式的任何其他文件在未來PHP的發行中可能會在不通知的情況下改變。 使用此函式需自行承擔風險。

參數

xml

XML response returned by XMLRPC method.

encoding

Input encoding supported by iconv (defaults to "iso-8859-1").

Return值

Returns either an array, or an integer, or a string, or a boolean according to the response returned by the XMLRPC method.

範例

See example by xmlrpc_encode_request().