reference/intl/intlchar/getnumericvalue.xml
1976eae0d815797af97a1e16c5cd90ffc2868395
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="intlchar.getnumericvalue" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>IntlChar::getNumericValue</refname>
...
...
@@ -9,16 +8,16 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
13
-
<modifier>public</modifier> <modifier>static</modifier> <type>float</type><methodname>IntlChar::getNumericValue</methodname>
14
-
<methodparam><type>mixed</type><parameter>codepoint</parameter></methodparam>
11
+
<methodsynopsis role="IntlChar">
12
+
<modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>float</type><type>null</type></type><methodname>IntlChar::getNumericValue</methodname>
13
+
<methodparam><type class="union"><type>int</type><type>string</type></type><parameter>codepoint</parameter></methodparam>
15
14
</methodsynopsis>
16
15
<para>
17
16
Gets the numeric value for a Unicode code point as defined in the Unicode Character Database.
18
17
</para>
19
18
<para>
20
19
For characters without any numeric values in the Unicode Character Database, this function will return
21
-
<type>float</type>(<literal>-123456789</literal>).
20
+
<constant>IntlChar::NO_NUMERIC_VALUE</constant>.
22
21
</para>
23
22
</refsect1>
24
23

...
...
@@ -38,7 +37,9 @@
38
37
&reftitle.returnvalues;
39
38
<para>
40
39
Numeric value of <parameter>codepoint</parameter>,
41
-
or <type>float</type>(<literal>-123456789</literal>) if none is defined.
40
+
or <constant>IntlChar::NO_NUMERIC_VALUE</constant> if none is defined. This
41
+
constant was added in PHP 7.0.6, prior to this version the literal value
42
+
(<type>float</type>)<literal>-123456789</literal> may be used instead. Returns &null; on failure.
42
43
</para>
43
44
</refsect1>
44
45

...
...
@@ -67,7 +68,6 @@ float(50)
67
68
</refsect1>
68
69

69
70
</refentry>
70
-

71
71
<!-- Keep this comment at the end of the file
72
72
Local variables:
73
73
mode: sgml
74
74