reference/xmlrpc/functions/xmlrpc-get-type.xml
80ae0ac088281e3aa437d704f54079ac4c1ff70a
...
...
@@ -15,8 +15,63 @@
15
15
<para>
16
16
This function is especially useful for base64 and datetime strings.
17
17
</para>
18
-
&warn.undocumented.func;
19
18
</refsect1>
19
+

20
+
<refsect1 role="parameters">
21
+
&reftitle.parameters;
22
+
<para>
23
+
<variablelist>
24
+
<varlistentry>
25
+
<term><parameter>value</parameter></term>
26
+
<listitem>
27
+
<para>
28
+
PHP value
29
+
</para>
30
+
</listitem>
31
+
</varlistentry>
32
+
</variablelist>
33
+
</para>
34
+
</refsect1>
35
+
36
+
<refsect1 role="returnvalues">
37
+
&reftitle.returnvalues;
38
+
<para>
39
+
Returns the XML-RPC type.
40
+
</para>
41
+
</refsect1>
42
+

43
+
<refsect1 role="examples">
44
+
&reftitle.examples;
45
+
<para>
46
+
<example>
47
+
<title>XML-RPC type example</title>
48
+
<programlisting role="php">
49
+
<![CDATA[
50
+
<?php
51
+
echo xmlrpc_get_type(null) . "\n"; // base64
52
+
echo xmlrpc_get_type(false) . "\n"; // boolean
53
+
echo xmlrpc_get_type(1) . "\n"; // int
54
+
echo xmlrpc_get_type(1.0) . "\n"; // double
55
+
echo xmlrpc_get_type("") . "\n"; // string
56
+
echo xmlrpc_get_type(array()) . "\n"; // array
57
+
echo xmlrpc_get_type(new stdClass) . "\n"; // array
58
+
echo xmlrpc_get_type(STDIN) . "\n"; // int
59
+
?>
60
+
]]>
61
+
</programlisting>
62
+
</example>
63
+
</para>
64
+
</refsect1>
65
+

66
+
<refsect1 role="seealso">
67
+
&reftitle.seealso;
68
+
<para>
69
+
<simplelist>
70
+
<member><function>xmlrpc_set_type</function></member>
71
+
</simplelist>
72
+
</para>
73
+
</refsect1>
74
+

20
75
</refentry>
21
76

22
77
<!-- Keep this comment at the end of the file
23
78