array.push()
Inserts an array element at the end of an array and return the new size of the array.
Introduced: 5.3.8.104
array.push( value=any )
Returns: Numeric
Examples
numbers = [ 1, 2, 3, 4 ];
Dump( numbers.Push( 0 ) ); // Outputs 5
<span class="nv">moreNumbers</span> <span class="o">=</span> <span class="p">[</span> <span class="m">5</span><span class="p">,</span> <span class="m">6</span><span class="p">,</span> <span class="m">7</span><span class="p">,</span> <span class="m">8</span> <span class="p">];</span>
<span class="nf">Dump</span><span class="p">(</span> <span class="nf">moreNumbers.Push</span><span class="p">(</span> <span class="m">4</span> <span class="p">)</span> <span class="p">);</span> <span class="c">// Outputs 5</span>