xmlrpc_get_type

Gets xmlrpc type for a PHP value

&reftitle.description; `string` `xmlrpc_get_type` `mixed` `value` &warn.experimental.func;

This function is especially useful for base64 and datetime strings.

&reftitle.parameters;

`value`

- PHP value

&reftitle.returnvalues;

Returns the XML-RPC type.

&reftitle.examples;

### XML-RPC type example

    <?php
    echo xmlrpc_get_type(null) . "\n"; // base64
    echo xmlrpc_get_type(false) . "\n"; // boolean
    echo xmlrpc_get_type(1) . "\n"; // int
    echo xmlrpc_get_type(1.0) . "\n"; // double
    echo xmlrpc_get_type("") . "\n"; // string
    echo xmlrpc_get_type(array()) . "\n"; // array
    echo xmlrpc_get_type(new stdClass) . "\n"; // array
    echo xmlrpc_get_type(STDIN) . "\n"; // int
    ?>

&reftitle.seealso;

- `xmlrpc_set_type`