<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24count</id>
	<title>$count - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24count"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$count&amp;action=history"/>
	<updated>2026-05-14T22:58:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$count&amp;diff=4507&amp;oldid=prev</id>
		<title>Albie: New article</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$count&amp;diff=4507&amp;oldid=prev"/>
		<updated>2006-07-23T02:36:55Z</updated>

		<summary type="html">&lt;p&gt;New article&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns the number of times a substring occurs in a string.&lt;br /&gt;
 $count(&amp;lt;haystack&amp;gt;,&amp;lt;needle&amp;gt;[,needle2,...,needleN])&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
$count returns the total occurances of all &amp;#039;&amp;#039;needles&amp;#039;&amp;#039; found in the &amp;#039;&amp;#039;haystack&amp;#039;&amp;#039;.&lt;br /&gt;
 var %haystack = I bought six apples and three pears. I ate one apple and threw the another Apple at Dana.&lt;br /&gt;
 echo -ag I found $count(%haystack,apple) apple(s).&lt;br /&gt;
 echo -ag I found $count(%haystack,pear) pear(s).&lt;br /&gt;
 echo -ag I found $count(%haystack,apple,pear) apple and pear(s).&lt;br /&gt;
 echo -ag I found $countcs(%haystack,Apple) case sensitive Apple(s).&lt;br /&gt;
 echo -ag I found $countcs(%haystack,Pear) case sensitive Pear(s).&lt;br /&gt;
 &lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;Result:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &amp;#039;&amp;#039;I found 3 apple(s).&amp;#039;&amp;#039;&lt;br /&gt;
 &amp;#039;&amp;#039;I found 1 pear(s).&amp;#039;&amp;#039;&lt;br /&gt;
 &amp;#039;&amp;#039;I found 4 apple and pear(s).&amp;#039;&amp;#039;&lt;br /&gt;
 &amp;#039;&amp;#039;I found 1 case sensitive Apple(s).&amp;#039;&amp;#039;&lt;br /&gt;
 &amp;#039;&amp;#039;I found 0 case sensitive Pear(s).&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Note ==&lt;br /&gt;
$countcs is a case sensitive version of $count&lt;br /&gt;
&lt;br /&gt;
[[Category:Text_and_Number_Identifiers]]&lt;/div&gt;</summary>
		<author><name>Albie</name></author>
	</entry>
</feed>