xmlrpc_set_type

Sets xmlrpc type, base64 or datetime, for a PHP string value

&reftitle.description; `bool` `xmlrpc_set_type` `string` `value` `string` `type`

Sets xmlrpc type, base64 or datetime, for a PHP string value.

&warn.experimental.func;
&reftitle.parameters;

`value`

- Value to set the type

`type`

- 'base64' or 'datetime'

&reftitle.returnvalues;

&return.success; If successful, `value` is converted to an object.

&reftitle.errors;

Issues E_WARNING with type unsupported by XMLRPC.

&reftitle.examples;

### A `xmlrpc_set_type` example

    <?php

    $params = date("Ymd\TH:i:s", time());
    xmlrpc_set_type($params, 'datetime');
    echo xmlrpc_encode($params);

    ?>

&example.outputs.similar;

    <?xml version="1.0" encoding="utf-8"?>
    <params>
    <param>
     <value>
      <dateTime.iso8601>20090322T23:43:03</dateTime.iso8601>
     </value>
    </param>
    </params>