xmlrpc_set_type
xmlrpc_set_type
Sets xmlrpc type, base64 or datetime, for a PHP string value
bool **xmlrpc_set_type** string $value string $type
Sets xmlrpc type, base64 or datetime, for a PHP string value.
valueValue to set the type
type'base64' or 'datetime'
return.success
If successful, is converted to an object.
value
Issues E_WARNING with type unsupported by XMLRPC.
Voorbeeld: A example
<?php
$params = date("Ymd\TH:i:s", time());
xmlrpc_set_type($params, 'datetime');
echo xmlrpc_encode($params);
?>
<?xml version="1.0" encoding="utf-8"?>
<params>
<param>
<value>
<dateTime.iso8601>20090322T23:43:03</dateTime.iso8601>
</value>
</param>
</params>