Home > PHP > Function > XML-RPC > xmlrpc_decode()

xmlrpc_decode()

xmlrpc_decode - Decodes XML into native PHP types

Syntax

mixed xmlrpc_decode (string $xml, string $encoding)

Arguments

  • xml - XML response returned by XMLRPC method.
  • encoding - Input encoding supported by iconv.

Description

Version

PHP 4.1.0, 5

Return value

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