reference/strings/functions/stristr.xml
d369659c3ffdc8b60f3958b587eea94e6e867fec
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.stristr">
3
+
<refentry xml:id="function.stristr" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>stristr</refname>
6
6
<refpurpose>Case-insensitive <function>strstr</function></refpurpose>
...
...
@@ -9,9 +9,9 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>string</type><methodname>stristr</methodname>
12
+
<type class="union"><type>string</type><type>false</type></type><methodname>stristr</methodname>
13
13
<methodparam><type>string</type><parameter>haystack</parameter></methodparam>
14
-
<methodparam><type>mixed</type><parameter>needle</parameter></methodparam>
14
+
<methodparam><type>string</type><parameter>needle</parameter></methodparam>
15
15
<methodparam choice="opt"><type>bool</type><parameter>before_needle</parameter><initializer>&false;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
...
...
@@ -35,6 +35,9 @@
35
35
<varlistentry>
36
36
<term><parameter>needle</parameter></term>
37
37
<listitem>
38
+
<para>
39
+
The string to search for.
40
+
</para>
38
41
&strings.parameter.needle.non-string;
39
42
</listitem>
40
43
</varlistentry>
...
...
@@ -76,16 +79,18 @@
76
79
</row>
77
80
</thead>
78
81
<tbody>
82
+
&strings.changelog.ascii-case-folding;
83
+
&strings.changelog.needle-empty;
79
84
<row>
80
-
<entry>5.3.0</entry>
85
+
<entry>8.0.0</entry>
81
86
<entry>
82
-
Added the optional parameter <parameter>before_needle</parameter>.
87
+
Passing an &integer; as <parameter>needle</parameter> is no longer supported.
83
88
</entry>
84
89
</row>
85
90
<row>
86
-
<entry>4.3.0</entry>
91
+
<entry>7.3.0</entry>
87
92
<entry>
88
-
<function>stristr</function> was made binary safe.
93
+
Passing an &integer; as <parameter>needle</parameter> has been deprecated.
89
94
</entry>
90
95
</row>
91
96
</tbody>
...
...
@@ -104,7 +109,7 @@
104
109
<?php
105
110
$email = 'USER@EXAMPLE.com';
106
111
echo stristr($email, 'e'); // outputs ER@EXAMPLE.com
107
-
echo stristr($email, 'e', true); // As of PHP 5.3.0, outputs US
112
+
echo stristr($email, 'e', true); // outputs US
108
113
?>
109
114
]]>
110
115
</programlisting>
...
...
@@ -161,7 +166,6 @@
161
166
</refsect1>
162
167

163
168
</refentry>
164
-

165
169
<!-- Keep this comment at the end of the file
166
170
Local variables:
167
171
mode: sgml
168
172