Speed up development with full-stack environments for every branch.

Learn More

How to to convert PHP variables into an XMLRPC response.

75 Runs 478 Views 163 Copies
Saved

Saved

gtsolutions 373

gtsolutions
published 4 years ago

<pre>
<?php

/*
 * PHP Xmlrpc - How to to convert PHP variables into an XML-RPC response.
 */

//Generic array
$params = array("one" => "red", "two" => "blue", "three" => "green");
//encode the array into an XMLRPC response
$response = xmlrpc_encode($params);
//display the result
echo htmlentities($response);
?>
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).