reference/strings/functions/hex2bin.xml
e095023e408c8cb6378ae16bb6870343a3946919
...
...
@@ -1,7 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
-
<refentry xml:id="function.hex2bin" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.hex2bin">
5
4
<refnamediv>
6
5
<refname>hex2bin</refname>
7
6
<refpurpose>Decodes a hexadecimally encoded binary string</refpurpose>
...
...
@@ -10,8 +9,8 @@
10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
11
<methodsynopsis>
13
-
<type>string</type><methodname>hex2bin</methodname>
14
-
<methodparam><type>string</type><parameter>data</parameter></methodparam>
12
+
<type class="union"><type>string</type><type>false</type></type><methodname>hex2bin</methodname>
13
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
15
14
</methodsynopsis>
16
15
<para>
17
16
Decodes a hexadecimally encoded binary string.
...
...
@@ -28,7 +27,7 @@
28
27
&reftitle.parameters;
29
28
<variablelist>
30
29
<varlistentry>
31
-
<term><parameter>data</parameter></term>
30
+
<term><parameter>string</parameter></term>
32
31
<listitem>
33
32
<para>
34
33
Hexadecimal representation of data.
...
...
@@ -53,37 +52,6 @@
53
52
</para>
54
53
</refsect1>
55
54

56
-
<refsect1 role="changelog">
57
-
&reftitle.changelog;
58
-
<para>
59
-
<informaltable>
60
-
<tgroup cols="2">
61
-
<thead>
62
-
<row>
63
-
<entry>&Version;</entry>
64
-
<entry>&Description;</entry>
65
-
</row>
66
-
</thead>
67
-
<tbody>
68
-
<row>
69
-
<entry>5.5.1</entry>
70
-
<entry>
71
-
A warning is thrown if the input string is invalid hexadecimal string.
72
-
</entry>
73
-
</row>
74
-
<row>
75
-
<entry>5.4.4</entry>
76
-
<entry>
77
-
A warning is thrown if the input string is of odd length. In PHP 5.4.0 the string
78
-
was silently accepted, but the last byte was truncated.
79
-
</entry>
80
-
</row>
81
-
</tbody>
82
-
</tgroup>
83
-
</informaltable>
84
-
</para>
85
-
</refsect1>
86
-

87
55
<refsect1 role="examples">
88
56
&reftitle.examples;
89
57
<example xml:id="hex2bin.example.basic">
...
...
@@ -116,7 +84,6 @@ string(16) "example hex data"
116
84
</refsect1>
117
85

118
86
</refentry>
119
-

120
87
<!-- Keep this comment at the end of the file
121
88
Local variables:
122
89
mode: sgml
123
90