<?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_Repeat</id>
		<title>Core Function Repeat - 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_Repeat"/>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Repeat&amp;action=history"/>
		<updated>2026-05-01T01:51:32Z</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_Repeat&amp;diff=1196&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; Repeat( &lt;expression&gt;, &lt;count&gt;, &lt;flag&gt; ) &lt;/pre&gt;  === Description ===  Create a new string or new array containing repeats of a string provided.  === Parameters ===  ==== exp...&quot;</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Repeat&amp;diff=1196&amp;oldid=prev"/>
				<updated>2011-12-02T14:14:03Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; Repeat( &amp;lt;expression&amp;gt;, &amp;lt;count&amp;gt;, &amp;lt;flag&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Create a new string or new array containing repeats of a string provided.  === 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;
Repeat( &amp;lt;expression&amp;gt;, &amp;lt;count&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;
Create a new string or new array containing repeats of a string provided.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== expression ====&lt;br /&gt;
&lt;br /&gt;
The string to copy.&lt;br /&gt;
&lt;br /&gt;
==== count ====&lt;br /&gt;
&lt;br /&gt;
The amount of times to copy the string&lt;br /&gt;
&lt;br /&gt;
==== flag ====&lt;br /&gt;
&lt;br /&gt;
Optional; If the flag is higher than one it will return an array instead of a string.&lt;br /&gt;
&lt;br /&gt;
Default 0 returns a string.&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Returns new string or new array.&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;
println(      Repeat(&amp;quot;AA&amp;quot;, 3)      ); // Prints AAAAAA&lt;br /&gt;
&lt;br /&gt;
Foreach( Repeat(&amp;quot;AA&amp;quot;, 3, 1) as $i )&lt;br /&gt;
{&lt;br /&gt;
	println( $i ); // Prints &amp;quot;AA&amp;quot; 3 times&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternative method using the &amp;quot;x&amp;quot; repetition operator&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
println(    &amp;quot;AA&amp;quot; x 3      ); // Prints AAAAAA&lt;br /&gt;
&lt;br /&gt;
Foreach( array(&amp;quot;AA&amp;quot;) x 3 as $i )&lt;br /&gt;
{&lt;br /&gt;
	println( $i ); // Prints &amp;quot;AA&amp;quot; 3 times&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>