<?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_SimilarText</id>
		<title>Core Function SimilarText - 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_SimilarText"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SimilarText&amp;action=history"/>
		<updated>2026-04-12T16:19:51Z</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_SimilarText&amp;diff=4614&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_SimilarText&amp;diff=4614&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:22Z</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_SimilarText&amp;diff=4613&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_SimilarText&amp;diff=4613&amp;oldid=prev"/>
				<updated>2014-08-11T21:40:59Z</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_SimilarText&amp;diff=2323&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; SimilarText( &lt;first&gt;, &lt;second&gt;, &lt;percent&gt; ) &lt;/pre&gt;  === Description ===  Calculates the similarity between two input strings and return a percentage of the matching between...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SimilarText&amp;diff=2323&amp;oldid=prev"/>
				<updated>2013-08-13T20:58:40Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; SimilarText( &amp;lt;first&amp;gt;, &amp;lt;second&amp;gt;, &amp;lt;percent&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Calculates the similarity between two input strings and return a percentage of the matching between...&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;
SimilarText( &amp;lt;first&amp;gt;, &amp;lt;second&amp;gt;, &amp;lt;percent&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Calculates the similarity between two input strings and return a percentage of the matching between the two input strings.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== first ====&lt;br /&gt;
&lt;br /&gt;
The first string. &lt;br /&gt;
&lt;br /&gt;
==== second ====&lt;br /&gt;
&lt;br /&gt;
The second string. &lt;br /&gt;
&lt;br /&gt;
==== percent ====&lt;br /&gt;
&lt;br /&gt;
Optional; A variable that will be set to the similarity in percent. &lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Returns the number of matching chars in both strings.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
The first two are the strings you want to compare.&lt;br /&gt;
&lt;br /&gt;
The percent tells you how accurate, in percentage terms, the match was.&lt;br /&gt;
&lt;br /&gt;
This is optional, though, so you can leave it out.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
Here's an example that tells the user how accurately they entered a username:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$real_username =&amp;quot;Bill Gates&amp;quot;;&lt;br /&gt;
$user_attempt = &amp;quot;Bill Bates&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$check = SimilarText($real_username, $user_attempt, $percent);&lt;br /&gt;
&lt;br /&gt;
print(&amp;quot;Check: &amp;quot; . $check . &amp;quot;\n&amp;quot;);&lt;br /&gt;
print(&amp;quot;Percent: &amp;quot; . $percent . &amp;quot;% correct\n&amp;quot;);&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>