<?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_Contains</id>
		<title>Core Function Contains - 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_Contains"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Contains&amp;action=history"/>
		<updated>2026-04-05T14:55:42Z</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_Contains&amp;diff=1137&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; Contains( &lt;string&gt;, &lt;substring&gt;, &lt;casesense&gt;) &lt;/pre&gt;  === Description ===  Check if string contains a sub string.  === Parameters ===  ==== string ====  The string to searc...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Contains&amp;diff=1137&amp;oldid=prev"/>
				<updated>2011-12-02T11:36:06Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; Contains( &amp;lt;string&amp;gt;, &amp;lt;substring&amp;gt;, &amp;lt;casesense&amp;gt;) &amp;lt;/pre&amp;gt;  === Description ===  Check if string contains a sub string.  === Parameters ===  ==== string ====  The string to searc...&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;
Contains( &amp;lt;string&amp;gt;, &amp;lt;substring&amp;gt;, &amp;lt;casesense&amp;gt;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Check if string contains a sub string.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== string ====&lt;br /&gt;
&lt;br /&gt;
The string to search.&lt;br /&gt;
&lt;br /&gt;
==== substring ====&lt;br /&gt;
&lt;br /&gt;
The substring to search for&lt;br /&gt;
&lt;br /&gt;
==== casesense ====&lt;br /&gt;
&lt;br /&gt;
Optional; If this is above 0 the function will use case insensitive search&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Success: Returns 1.&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;
$val = &amp;quot;The fox&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// Regular and case sensitive&lt;br /&gt;
If( Contains($val, &amp;quot;fox&amp;quot;) )&lt;br /&gt;
{&lt;br /&gt;
	println(&amp;quot;It contains fox&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
Else&lt;br /&gt;
{&lt;br /&gt;
	println(&amp;quot;It does not fox&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Case insensitive&lt;br /&gt;
If( Contains($val, &amp;quot;FOX&amp;quot;, 1) )&lt;br /&gt;
{&lt;br /&gt;
	println(&amp;quot;It contains fox&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
Else&lt;br /&gt;
{&lt;br /&gt;
	println(&amp;quot;It does not fox&amp;quot;);&lt;br /&gt;
}&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>