PHP new array from old array
<p>Here is the code in question:</p>

<pre><code>$countries = array("New Zealand", "Australia", "United Kingdom", "New Zealand");
</code></pre>

<p>I am after some code that will let me declare a new array from this previous array with me specifying how many items in the array.</p>

<p>eg:</p>

<p>If I did something like this:</p>

<pre><code>$newArray = $countries[1], $newArray will hold "New Zealand" and "Australia"
$newArray = $countries[2], $newArray will hold "New Zealand", "Australia" and "United Kingdom"
</code></pre>

<p>Currently I am doing this by using a for loop. Is there an easier/more efficient way to do this?</p>

<p>thanks</p>
