reference/iconv/functions/iconv-strrpos.xml
ab9a7d2e3dfa9224186abcbd7a43b3af08d1bfdb
...
...
@@ -9,10 +9,10 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>int</type><methodname>iconv_strrpos</methodname>
12
+
<type class="union"><type>int</type><type>false</type></type><methodname>iconv_strrpos</methodname>
13
13
<methodparam><type>string</type><parameter>haystack</parameter></methodparam>
14
14
<methodparam><type>string</type><parameter>needle</parameter></methodparam>
15
-
<methodparam choice="opt"><type>string</type><parameter>charset</parameter><initializer>ini_get("iconv.internal_encoding")</initializer></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
Finds the last occurrence of a <parameter>needle</parameter>
...
...
@@ -23,7 +23,7 @@
23
23
<function>iconv_strrpos</function> is the number of characters that
24
24
appear before the needle, rather than the offset in bytes to the
25
25
position where the needle has been found. The characters are counted
26
-
on the basis of the specified character set <parameter>charset</parameter>.
26
+
on the basis of the specified character set <parameter>encoding</parameter>.
27
27
</para>
28
28
</refsect1>
29
29

...
...
@@ -48,10 +48,10 @@
48
48
</listitem>
49
49
</varlistentry>
50
50
<varlistentry>
51
-
<term><parameter>charset</parameter></term>
51
+
<term><parameter>encoding</parameter></term>
52
52
<listitem>
53
53
<para>
54
-
If <parameter>charset</parameter> parameter is omitted,
54
+
If <parameter>encoding</parameter> parameter is omitted or &null;,
55
55
<parameter>string</parameter> are assumed to be encoded in
56
56
<link linkend="iconv.configuration">iconv.internal_encoding</link>.
57
57
</para>
...
...
@@ -79,6 +79,28 @@
79
79
&return.falseproblem;
80
80
</refsect1>
81
81

82
+
<refsect1 role="changelog">
83
+
&reftitle.changelog;
84
+
<informaltable>
85
+
<tgroup cols="2">
86
+
<thead>
87
+
<row>
88
+
<entry>&Version;</entry>
89
+
<entry>&Description;</entry>
90
+
</row>
91
+
</thead>
92
+
<tbody>
93
+
<row>
94
+
<entry>8.0.0</entry>
95
+
<entry>
96
+
<parameter>encoding</parameter> is nullable now.
97
+
</entry>
98
+
</row>
99
+
</tbody>
100
+
</tgroup>
101
+
</informaltable>
102
+
</refsect1>
103
+

82
104
<refsect1 role="seealso">
83
105
&reftitle.seealso;
84
106
<para>
...
...
@@ -91,7 +113,6 @@
91
113
</refsect1>
92
114

93
115
</refentry>
94
-

95
116
<!-- Keep this comment at the end of the file
96
117
Local variables:
97
118
mode: sgml
98
119