xmlrpc_decode
(PHP 4 >= 4.0.7, PHP 5)
xmlrpc_decode — Decodes XML into native PHP types
Description
mixed xmlrpc_decode
( string $xml
[, string $encoding
] )
Warning
這個函數是實驗性質的。這個函數的行為、名稱、和關於此函數的任何其他文件在未來PHP的發行中可能會在不通知的情況下改變。 使用此延伸需自行承擔風險。
Parameters
- xml
-
XML response returned by XMLRPC method.
- encoding
-
Input encoding supported by iconv (defaults to "iso-8859-1").
Return Values
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().