Function __global->xml_rpc

Definitions

sources/xmlrpc.php

  • Do a highly-simplified XML-RPC request (no actual calling supported - just messaging).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$url URLPATH No No required parameter N/A N/A The XML-RPC call URL
$method string No No required parameter N/A N/A The method name to call
$params array No No required parameter N/A N/A An array of parameters
$accept_failure boolean No No False N/A N/A Whether to accept failure

Returns

  • The result (null: failed)
  • Type: ?string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Do a highly-simplified XML-RPC request (no actual calling supported - just messaging).
 *
 * @param  URLPATH $url The XML-RPC call URL
 * @param  string $method The method name to call
 * @param  array $params An array of parameters
 * @param  boolean $accept_failure Whether to accept failure
 * @return ?string The result (null: failed)
 */

function xml_rpc(string $url, string $method, array $params, bool $accept_failure = false) : ?string