reference/mbstring/functions/mb-strpos.xml
f63aa0afcde35bf8450e32128295d6e08cd6b120
...
...
@@ -9,11 +9,11 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>int</type><methodname>mb_strpos</methodname>
12
+
<type class="union"><type>int</type><type>false</type></type><methodname>mb_strpos</methodname>
13
13
<methodparam><type>string</type><parameter>haystack</parameter></methodparam>
14
14
<methodparam><type>string</type><parameter>needle</parameter></methodparam>
15
15
<methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam>
16
-
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>mb_internal_encoding()</initializer></methodparam>
16
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam>
17
17
</methodsynopsis>
18
18
<para>
19
19
Finds position of the first occurrence of a <type>string</type> in a <type>string</type>.
...
...
@@ -53,6 +53,7 @@
53
53
<listitem>
54
54
<para>
55
55
The search offset. If it is not specified, 0 is used.
56
+
A negative offset counts from the end of the string.
56
57
</para>
57
58
</listitem>
58
59
</varlistentry>
...
...
@@ -76,6 +77,30 @@
76
77
</para>
77
78
</refsect1>
78
79

80
+
<refsect1 role="changelog">
81
+
&reftitle.changelog;
82
+
<informaltable>
83
+
<tgroup cols="2">
84
+
<thead>
85
+
<row>
86
+
<entry>&Version;</entry>
87
+
<entry>&Description;</entry>
88
+
</row>
89
+
</thead>
90
+
<tbody>
91
+
&mbstring.changelog.needle-empty;
92
+
&mbstring.changelog.encoding-nullable;
93
+
<row>
94
+
<entry>7.1.0</entry>
95
+
<entry>
96
+
Support for negative <parameter>offset</parameter>s has been added.
97
+
</entry>
98
+
</row>
99
+
</tbody>
100
+
</tgroup>
101
+
</informaltable>
102
+
</refsect1>
103
+

79
104
<refsect1 role="seealso">
80
105
&reftitle.seealso;
81
106
<para>
...
...
@@ -87,7 +112,6 @@
87
112
</refsect1>
88
113

89
114
</refentry>
90
-

91
115
<!-- Keep this comment at the end of the file
92
116
Local variables:
93
117
mode: sgml
94
118