reference/pcre/functions/preg-split.xml
41c8533ff5a8f93ba9fdf0732d05dd5ab79864c9
...
...
@@ -9,7 +9,7 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>array</type><methodname>preg_split</methodname>
12
+
<type class="union"><type>array</type><type>false</type></type><methodname>preg_split</methodname>
13
13
<methodparam><type>string</type><parameter>pattern</parameter></methodparam>
14
14
<methodparam><type>string</type><parameter>subject</parameter></methodparam>
15
15
<methodparam choice="opt"><type>int</type><parameter>limit</parameter><initializer>-1</initializer></methodparam>
...
...
@@ -46,9 +46,7 @@
46
46
<para>
47
47
If specified, then only substrings up to <parameter>limit</parameter>
48
48
are returned with the rest of the string being placed in the last
49
-
substring. A <parameter>limit</parameter> of -1, 0 or &null; means "no limit"
50
-
and, as is standard across PHP, you can use &null; to skip to the
51
-
<parameter>flags</parameter> parameter.
49
+
substring. A <parameter>limit</parameter> of -1 or 0 means "no limit".
52
50
</para>
53
51
</listitem>
54
52
</varlistentry>
...
...
@@ -105,6 +103,11 @@
105
103
</para>
106
104
</refsect1>
107
105

106
+
<refsect1 role="errors">
107
+
&reftitle.errors;
108
+
&pcre.pattern.warning;
109
+
</refsect1>
110
+

108
111
<refsect1 role="examples">
109
112
&reftitle.examples;
110
113
<para>
111
114