reference/pcre/functions/preg-quote.xml
22e850b66cd9a4b8f0e002bd5850f9839caaf152
...
...
@@ -11,7 +11,7 @@
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>preg_quote</methodname>
13
13
<methodparam><type>string</type><parameter>str</parameter></methodparam>
14
-
<methodparam choice="opt"><type>string</type><parameter>delimiter</parameter><initializer>&null;</initializer></methodparam>
14
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>delimiter</parameter><initializer>&null;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
<function>preg_quote</function> takes <parameter>str</parameter>
...
...
@@ -22,7 +22,7 @@
22
22
</para>
23
23
<para>
24
24
The special regular expression characters are:
25
-
<literal>. \ + * ? [ ^ ] $ ( ) { } = ! &lt; &gt; | : -</literal>
25
+
<literal>. \ + * ? [ ^ ] $ ( ) { } = ! &lt; &gt; | : - #</literal>
26
26
</para>
27
27
<para>
28
28
Note that <literal>/</literal> is not a special regular expression character.
...
...
@@ -82,9 +82,15 @@
82
82
</thead>
83
83
<tbody>
84
84
<row>
85
-
<entry>5.3.0</entry>
85
+
<entry>7.3.0</entry>
86
86
<entry>
87
-
The <literal>-</literal> character is now quoted
87
+
The <literal>#</literal> character is now quoted
88
+
</entry>
89
+
</row>
90
+
<row>
91
+
<entry>7.2.0</entry>
92
+
<entry>
93
+
<parameter>delimiter</parameter> is nullable now.
88
94
</entry>
89
95
</row>
90
96
</tbody>
...
...
@@ -147,7 +153,6 @@ $textbody = preg_replace ("/" . preg_quote($word, '/') . "/",
147
153
</refsect1>
148
154

149
155
</refentry>
150
-

151
156
<!-- Keep this comment at the end of the file
152
157
Local variables:
153
158
mode: sgml
154
159