<?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_Array</id>
		<title>Core Function Array - 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_Array"/>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Array&amp;action=history"/>
		<updated>2026-04-05T17:36:17Z</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_Array&amp;diff=4628&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_Array&amp;diff=4628&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:23Z</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_Array&amp;diff=4627&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_Array&amp;diff=4627&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://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Array&amp;diff=2380&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; Array( &lt;expressions&gt; )  &lt;/pre&gt;  === Description ===  Create a new array.  An array in Sputnik is actually an ordered map. A map is a type that associates values to keys. Th...&quot;</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Array&amp;diff=2380&amp;oldid=prev"/>
				<updated>2013-08-18T14:32:29Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; Array( &amp;lt;expressions&amp;gt; )  &amp;lt;/pre&amp;gt;  === Description ===  Create a new array.  An array in Sputnik is actually an ordered map. A map is a type that associates values to keys. Th...&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;
Array( &amp;lt;expressions&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 array.&lt;br /&gt;
&lt;br /&gt;
An array in Sputnik is actually an ordered map. A map is a type that associates values to keys. This type is optimized for several different uses; it can be treated as an array, list, hash table (an implementation of a map), dictionary, collection, stack, queue, and probably more. As array values can be other arrays, trees and multidimensional arrays are also possible.&lt;br /&gt;
&lt;br /&gt;
Explanation of those data structures is beyond the scope of this page, but at least one example is provided for each of them. For more information, look towards the considerable literature that exists about this broad topic. &lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== expressions ====&lt;br /&gt;
&lt;br /&gt;
Optional; One or more parameters to add to the array.&lt;br /&gt;
&lt;br /&gt;
(If you ignore this and just like Array() it will create a blank array)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
A new array optionally populated with any expressions.&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;
A simple list&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$array = array(&amp;quot;One&amp;quot;, &amp;quot;Two&amp;quot;, &amp;quot;Three&amp;quot;);&lt;br /&gt;
printr( $array );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A simple dictionary&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$array = array(&lt;br /&gt;
    &amp;quot;foo&amp;quot; =&amp;gt; &amp;quot;bar&amp;quot;,&lt;br /&gt;
    &amp;quot;bar&amp;quot; =&amp;gt; &amp;quot;foo&amp;quot;&lt;br /&gt;
);&lt;br /&gt;
printr( $array );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If multiple elements in the array declaration use the same key, only the last one will be used as all others are overwritten. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$array = array(&lt;br /&gt;
    1    =&amp;gt; &amp;quot;a&amp;quot;,&lt;br /&gt;
    &amp;quot;1&amp;quot;  =&amp;gt; &amp;quot;b&amp;quot;,&lt;br /&gt;
    1.5  =&amp;gt; &amp;quot;c&amp;quot;,&lt;br /&gt;
    true =&amp;gt; &amp;quot;d&amp;quot;&lt;br /&gt;
);&lt;br /&gt;
printr( $array );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A large array&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$array = array(&lt;br /&gt;
	// The only C0 controls acceptable in XML 1.0 and 1.1&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x0009, &amp;quot;top&amp;quot; =&amp;gt; 0x000A),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x000D, &amp;quot;top&amp;quot; =&amp;gt; 0x000D),&lt;br /&gt;
&lt;br /&gt;
	// Non-control characters in the Basic Latin block, excluding the last C0 control&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x0020, &amp;quot;top&amp;quot; =&amp;gt; 0x007E),&lt;br /&gt;
&lt;br /&gt;
	// The only C1 control character accepted in both XML 1.0 and XML 1.1&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x0085, &amp;quot;top&amp;quot; =&amp;gt; 0x0085),&lt;br /&gt;
&lt;br /&gt;
	// Rest of BMP, excluding all non-characters (such as surrogates)&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x00A0, &amp;quot;top&amp;quot; =&amp;gt; 0xD7FF),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0xE000, &amp;quot;top&amp;quot; =&amp;gt; 0xFDCF),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0xFDE0, &amp;quot;top&amp;quot; =&amp;gt; 0xFFFD),&lt;br /&gt;
&lt;br /&gt;
	// Exclude all non-characters in supplementary planes&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x10000, &amp;quot;top&amp;quot; =&amp;gt; 0x1FFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x20000, &amp;quot;top&amp;quot; =&amp;gt; 0x2FFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x30000, &amp;quot;top&amp;quot; =&amp;gt; 0x3FFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x40000, &amp;quot;top&amp;quot; =&amp;gt; 0x4FFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x50000, &amp;quot;top&amp;quot; =&amp;gt; 0x5FFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x60000, &amp;quot;top&amp;quot; =&amp;gt; 0x6FFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x70000, &amp;quot;top&amp;quot; =&amp;gt; 0x7FFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x80000, &amp;quot;top&amp;quot; =&amp;gt; 0x8FFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x90000, &amp;quot;top&amp;quot; =&amp;gt; 0x9FFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0xA0000, &amp;quot;top&amp;quot; =&amp;gt; 0xAFFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0xB0000, &amp;quot;top&amp;quot; =&amp;gt; 0xBFFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0xC0000, &amp;quot;top&amp;quot; =&amp;gt; 0xCFFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0xD0000, &amp;quot;top&amp;quot; =&amp;gt; 0xDFFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0xE0000, &amp;quot;top&amp;quot; =&amp;gt; 0xEFFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0xF0000, &amp;quot;top&amp;quot; =&amp;gt; 0xFFFFD),&lt;br /&gt;
	array(&amp;quot;bottom&amp;quot; =&amp;gt; 0x100000, &amp;quot;top&amp;quot; =&amp;gt; 0x10FFFD)&lt;br /&gt;
);&lt;br /&gt;
printr( $array );&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>