php8.5
Home/ Manual/ xmlrpc / functions/ xmlrpc_decode

xmlrpc_decode

PHP function Edit on GitHub ✎

(PHP 4 >= 4.1.0, PHP 5, PHP 7)

Decodes XML into native PHP types

Description

xmlrpc_decode(string $xml, string $encoding = "iso-8859-1"): mixed

Func

Parameters

xml

XML response returned by XMLRPC method.

encoding

Input encoding supported by iconv.

Return Values

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

Examples

See example by xmlrpc_encode_request().

See Also

Source: reference/xmlrpc/functions/xmlrpc-decode.xml · from the official PHP manual (php/doc-en)