<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_SubStrCount</id>
		<title>Core Function SubStrCount - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_SubStrCount"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrCount&amp;action=history"/>
		<updated>2026-04-05T15:11:23Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrCount&amp;diff=4429&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrCount&amp;diff=4429&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:11Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:37, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrCount&amp;diff=4428&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrCount&amp;diff=4428&amp;oldid=prev"/>
				<updated>2014-08-11T21:40:53Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:40, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrCount&amp;diff=1734&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; SubStrCount( &lt;expression&gt;, &lt;expression2&gt;, &lt;offset&gt;, &lt;length&gt;, &lt;flag&gt; )  &lt;/pre&gt;  === Description ===  Count the number of substring occurrences  === Parameters ===  ==== exp...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrCount&amp;diff=1734&amp;oldid=prev"/>
				<updated>2012-04-22T19:32:06Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; SubStrCount( &amp;lt;expression&amp;gt;, &amp;lt;expression2&amp;gt;, &amp;lt;offset&amp;gt;, &amp;lt;length&amp;gt;, &amp;lt;flag&amp;gt; )  &amp;lt;/pre&amp;gt;  === Description ===  Count the number of substring occurrences  === Parameters ===  ==== exp...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
SubStrCount( &amp;lt;expression&amp;gt;, &amp;lt;expression2&amp;gt;, &amp;lt;offset&amp;gt;, &amp;lt;length&amp;gt;, &amp;lt;flag&amp;gt; ) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Count the number of substring occurrences&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== expression ====&lt;br /&gt;
&lt;br /&gt;
The string to search in.&lt;br /&gt;
&lt;br /&gt;
==== expression2 ====&lt;br /&gt;
&lt;br /&gt;
The substring to search for.&lt;br /&gt;
&lt;br /&gt;
==== offset ====&lt;br /&gt;
&lt;br /&gt;
Optional; The offset where to start counting.&lt;br /&gt;
&lt;br /&gt;
==== count ====&lt;br /&gt;
&lt;br /&gt;
Optional; The number of characters to extract. By default the entire remainder of the string.&lt;br /&gt;
&lt;br /&gt;
==== length ====&lt;br /&gt;
&lt;br /&gt;
Optional; The maximum length after the specified offset to search for the substring.&lt;br /&gt;
&lt;br /&gt;
==== flag ====&lt;br /&gt;
&lt;br /&gt;
Optional; The flag to set the case.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
0 = Case insensitive (Default)&lt;br /&gt;
1 = Case sensitive&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Success: Returns number of occurrences.&lt;br /&gt;
&lt;br /&gt;
Failure: Returns 0.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$text = 'This is a test';&lt;br /&gt;
println( strlen($text) ); // 14&lt;br /&gt;
&lt;br /&gt;
// the string is reduced to 't', so it prints 1&lt;br /&gt;
println( &amp;quot;1: &amp;quot; . SubstrCount($text, 't', 13, 1) );&lt;br /&gt;
&lt;br /&gt;
// the string is reduced to 'This is a test', so it prints 2&lt;br /&gt;
println( &amp;quot;2: &amp;quot; . SubstrCount($text, 'is') );&lt;br /&gt;
&lt;br /&gt;
// the string is reduced to 's is a test', so it prints 1&lt;br /&gt;
println( &amp;quot;1: &amp;quot; . SubstrCount($text, 'is', 3) );&lt;br /&gt;
&lt;br /&gt;
// the text is reduced to 's i', so it prints 0&lt;br /&gt;
println( &amp;quot;O: &amp;quot; . SubstrCount($text, 'is', 3, 3) );&lt;br /&gt;
&lt;br /&gt;
// the text is reduced to '', because 5+10 &amp;gt; 14, so it prints 0&lt;br /&gt;
println( &amp;quot;O: &amp;quot; . SubstrCount($text, 'is', 5, 10) );&lt;br /&gt;
&lt;br /&gt;
// prints only 1, because it doesn't count overlapped substrings&lt;br /&gt;
$text2 = 'gcdgcdgcd';&lt;br /&gt;
println( &amp;quot;1: &amp;quot; . SubstrCount($text2, 'gcdgcd') );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>