XMLRPC_GET_TYPE(3) 1 XMLRPC_GET_TYPE(3)
xmlrpc_get_type - Gets xmlrpc type for a PHP value
SYNOPSIS
string xmlrpc_get_type (mixed $value)
DESCRIPTION
Warning
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in
a future release of PHP. This function should be used at your own risk.
This function is especially useful for base64 and datetime strings.
PARAMETERS
o $value
- PHP value
RETURN VALUES
Returns the XML-RPC type.
EXAMPLES
Example #1
XML-RPC type example
<?php
echo xmlrpc_get_type(null) . "
"; // base64
echo xmlrpc_get_type(false) . "
"; // boolean
echo xmlrpc_get_type(1) . "
"; // int
echo xmlrpc_get_type(1.0) . "
"; // double
echo xmlrpc_get_type("") . "
"; // string
echo xmlrpc_get_type(array()) . "
"; // array
echo xmlrpc_get_type(new stdClass) . "
"; // array
echo xmlrpc_get_type(STDIN) . "
"; // int
?>
SEE ALSO
xmlrpc_set_type(3).
PHP Documentation Group XMLRPC_GET_TYPE(3)