reference/math/functions/hexdec.xml
86e6094e86b84a51d00ab217ac50ce8dde33d82a
...
...
@@ -8,7 +8,7 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>number</type><methodname>hexdec</methodname>
11
+
<type class="union"><type>int</type><type>float</type></type><methodname>hexdec</methodname>
12
12
<methodparam><type>string</type><parameter>hex_string</parameter></methodparam>
13
13
</methodsynopsis>
14
14
<para>
...
...
@@ -20,6 +20,7 @@
20
20
<para>
21
21
<function>hexdec</function> will ignore any non-hexadecimal
22
22
characters it encounters.
23
+
As of PHP 7.4.0 supplying any invalid characters is deprecated.
23
24
</para>
24
25
</refsect1>
25
26
<refsect1 role="parameters">
...
...
@@ -43,6 +44,30 @@
43
44
The decimal representation of <parameter>hex_string</parameter>
44
45
</para>
45
46
</refsect1>
47
+

48
+
<refsect1 role="changelog">
49
+
&reftitle.changelog;
50
+
<informaltable>
51
+
<tgroup cols="2">
52
+
<thead>
53
+
<row>
54
+
<entry>&Version;</entry>
55
+
<entry>&Description;</entry>
56
+
</row>
57
+
</thead>
58
+
<tbody>
59
+
<row>
60
+
<entry>7.4.0</entry>
61
+
<entry>
62
+
Passing invalid characters will now generate a deprecation notice.
63
+
The result will still be computed as if the invalid characters did not exist.
64
+
</entry>
65
+
</row>
66
+
</tbody>
67
+
</tgroup>
68
+
</informaltable>
69
+
</refsect1>
70
+

46
71
<refsect1 role="examples">
47
72
&reftitle.examples;
48
73
<para>
...
...
@@ -68,7 +93,7 @@ var_dump(hexdec("a0")); // print "int(160)"
68
93
<note>
69
94
<para>
70
95
The function can convert numbers that are too large to fit into the platforms
71
-
<type>integer</type> type, larger values are returned as <type>float</type> in
96
+
<type>int</type> type, larger values are returned as <type>float</type> in
72
97
that case.
73
98
</para>
74
99
</note>
75
100