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

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StrTok&amp;diff=4810&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StrTok&amp;diff=4810&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:37Z</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://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StrTok&amp;diff=4809&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StrTok&amp;diff=4809&amp;oldid=prev"/>
				<updated>2014-08-11T21:41:05Z</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:41, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StrTok&amp;diff=3222&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; StrTok( &lt;str&gt;, &lt;token&gt; ) StrTok( &lt;token&gt; ) &lt;/pre&gt;  === Description ===  Tokenize string.  === Parameters ===  ==== str ====  The string being split up into smaller strings ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_StrTok&amp;diff=3222&amp;oldid=prev"/>
				<updated>2013-09-20T10:51:03Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; StrTok( &amp;lt;str&amp;gt;, &amp;lt;token&amp;gt; ) StrTok( &amp;lt;token&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Tokenize string.  === Parameters ===  ==== str ====  The string being split up into smaller strings ...&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;
StrTok( &amp;lt;str&amp;gt;, &amp;lt;token&amp;gt; )&lt;br /&gt;
StrTok( &amp;lt;token&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Tokenize string.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== str ====&lt;br /&gt;
&lt;br /&gt;
The string being split up into smaller strings (tokens). &lt;br /&gt;
&lt;br /&gt;
==== token ====&lt;br /&gt;
&lt;br /&gt;
The delimiter used when splitting up str. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Return the length of the string.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
StrTok() splits a string (str) into smaller strings (tokens), with each token being delimited by any character from token.&lt;br /&gt;
&lt;br /&gt;
That is, if you have a string like &amp;quot;This is an example string&amp;quot; you could tokenize this string into its individual words by using the space character as the token.&lt;br /&gt;
&lt;br /&gt;
Note that only the first call to StrTok uses the string argument. Every subsequent call to StrTok only needs the token to use, as it keeps track of where it is in the current string. To start over, or to tokenize a new string you simply call StrTok with the string argument again to initialize it.&lt;br /&gt;
&lt;br /&gt;
Note that you may put multiple tokens in the token parameter. The string will be tokenized when any one of the characters in the argument are found. &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;
$string = &amp;quot;This is\tan example\nstring&amp;quot;;&lt;br /&gt;
/* Use tab and newline as tokenizing characters as well  */&lt;br /&gt;
$tok = strtok($string, &amp;quot; \n\t&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
while ( !IsEmptyOrNull($tok) )&lt;br /&gt;
{&lt;br /&gt;
    echo &amp;quot;Word=$tok\n&amp;quot;;&lt;br /&gt;
    $tok = strtok(&amp;quot; \n\t&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
// Prints&lt;br /&gt;
// Word=This&lt;br /&gt;
// Word=is&lt;br /&gt;
// Word=an&lt;br /&gt;
// Word=example&lt;br /&gt;
// Word=string&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>