reference/mbstring/functions/mb-eregi-replace.xml
92f1b8b177eb5730382abf9f27bae868f1bb636f
...
...
@@ -9,11 +9,11 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>string</type><methodname>mb_eregi_replace</methodname>
12
+
<type class="union"><type>string</type><type>false</type><type>null</type></type><methodname>mb_eregi_replace</methodname>
13
13
<methodparam><type>string</type><parameter>pattern</parameter></methodparam>
14
-
<methodparam><type>string</type><parameter>replace</parameter></methodparam>
14
+
<methodparam><type>string</type><parameter>replacement</parameter></methodparam>
15
15
<methodparam><type>string</type><parameter>string</parameter></methodparam>
16
-
<methodparam choice="opt"><type>string</type><parameter>option</parameter><initializer>"msri"</initializer></methodparam>
16
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam>
17
17
</methodsynopsis>
18
18
<simpara>
19
19
Scans <parameter>string</parameter> for matches to
...
...
@@ -35,7 +35,7 @@
35
35
</listitem>
36
36
</varlistentry>
37
37
<varlistentry>
38
-
<term><parameter>replace</parameter></term>
38
+
<term><parameter>replacement</parameter></term>
39
39
<listitem>
40
40
<para>
41
41
The replacement text.
...
...
@@ -51,11 +51,10 @@
51
51
</listitem>
52
52
</varlistentry>
53
53
<varlistentry>
54
-
<term><parameter>option</parameter></term>
54
+
<term><parameter>options</parameter></term>
55
55
<listitem>
56
56
<simpara>
57
-
<parameter>option</parameter> has the same meaning as in
58
-
<function>mb_ereg_replace</function>.
57
+
The search option. See <function>mb_regex_set_options</function> for explanation.
59
58
</simpara>
60
59
</listitem>
61
60
</varlistentry>
...
...
@@ -67,6 +66,8 @@
67
66
&reftitle.returnvalues;
68
67
<para>
69
68
The resultant <type>string</type> or &false; on error.
69
+
If <parameter>string</parameter> is not valid for the current encoding, &null;
70
+
is returned.
70
71
</para>
71
72
</refsect1>
72
73

...
...
@@ -83,6 +84,19 @@
83
84
</thead>
84
85
<tbody>
85
86
<row>
87
+
<entry>8.0.0</entry>
88
+
<entry>
89
+
<parameter>options</parameter> is nullable now.
90
+
</entry>
91
+
</row>
92
+
<row>
93
+
<entry>7.1.0</entry>
94
+
<entry>
95
+
The function checks whether <parameter>string</parameter> is valid for the
96
+
current encoding.
97
+
</entry>
98
+
</row>
99
+
<row>
86
100
<entry>7.1.0</entry>
87
101
<entry>
88
102
The <literal>e</literal> modifier has been deprecated.
...
...
@@ -112,7 +126,6 @@
112
126
</refsect1>
113
127

114
128
</refentry>
115
-

116
129
<!-- Keep this comment at the end of the file
117
130
Local variables:
118
131
mode: sgml
119
132