reference/pcre/functions/preg-grep.xml
41c8533ff5a8f93ba9fdf0732d05dd5ab79864c9
...
...
@@ -9,14 +9,14 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>array</type><methodname>preg_grep</methodname>
12
+
<type class="union"><type>array</type><type>false</type></type><methodname>preg_grep</methodname>
13
13
<methodparam><type>string</type><parameter>pattern</parameter></methodparam>
14
-
<methodparam><type>array</type><parameter>input</parameter></methodparam>
14
+
<methodparam><type>array</type><parameter>array</parameter></methodparam>
15
15
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
Returns the array consisting of the elements of the
19
-
<parameter>input</parameter> array that match the given
19
+
<parameter>array</parameter> array that match the given
20
20
<parameter>pattern</parameter>.
21
21
</para>
22
22
</refsect1>
...
...
@@ -34,7 +34,7 @@
34
34
</listitem>
35
35
</varlistentry>
36
36
<varlistentry>
37
-
<term><parameter>input</parameter></term>
37
+
<term><parameter>array</parameter></term>
38
38
<listitem>
39
39
<para>
40
40
The input array.
...
...
@@ -59,10 +59,15 @@
59
59
&reftitle.returnvalues;
60
60
<para>
61
61
Returns an array indexed using the keys from the
62
-
<parameter>input</parameter> array.
62
+
<parameter>array</parameter> array, &return.falseforfailure;.
63
63
</para>
64
64
</refsect1>
65
65

66
+
<refsect1 role="errors">
67
+
&reftitle.errors;
68
+
&pcre.pattern.warning;
69
+
</refsect1>
70
+

66
71
<refsect1 role="examples">
67
72
&reftitle.examples;
68
73
<para>
...
...
@@ -96,7 +101,6 @@ $fl_array = preg_grep("/^(\d+)?\.\d+$/", $array);
96
101
</refsect1>
97
102

98
103
</refentry>
99
-

100
104
<!-- Keep this comment at the end of the file
101
105
Local variables:
102
106
mode: sgml
103
107