reference/strings/functions/substr-count.xml
e095023e408c8cb6378ae16bb6870343a3946919
...
...
@@ -1,7 +1,7 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.27 -->
4
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.substr-count">
4
+
<refentry xml:id="function.substr-count" xmlns="http://docbook.org/ns/docbook">
5
5
<refnamediv>
6
6
<refname>substr_count</refname>
7
7
<refpurpose>Count the number of substring occurrences</refpurpose>
...
...
@@ -13,7 +13,7 @@
13
13
<methodparam><type>string</type><parameter>haystack</parameter></methodparam>
14
14
<methodparam><type>string</type><parameter>needle</parameter></methodparam>
15
15
<methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam>
16
-
<methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam>
16
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>length</parameter><initializer>&null;</initializer></methodparam>
17
17
</methodsynopsis>
18
18
<para>
19
19
<function>substr_count</function> returns the number of times the
...
...
@@ -75,7 +75,7 @@
75
75
<refsect1 role="returnvalues">
76
76
&reftitle.returnvalues;
77
77
<para>
78
-
This function returns an <type>integer</type>.
78
+
This function returns an <type>int</type>.
79
79
</para>
80
80
</refsect1>
81
81

...
...
@@ -91,6 +91,12 @@
91
91
</row>
92
92
</thead>
93
93
<tbody>
94
+
<row>
95
+
<entry>8.0.0</entry>
96
+
<entry>
97
+
<parameter>length</parameter> is nullable now.
98
+
</entry>
99
+
</row>
94
100
<row>
95
101
<entry>7.1.0</entry>
96
102
<entry>
...
...
@@ -149,7 +155,6 @@ echo substr_count($text2, 'gcdgcd');
149
155
</para>
150
156
</refsect1>
151
157
</refentry>
152
-

153
158
<!-- Keep this comment at the end of the file
154
159
Local variables:
155
160
mode: sgml
156
161