PHP, remove from array?
<p>Im searching through an array of countries to see if any match the UK, if so I pull it out and put it at the top of my drop down.</p>

<pre><code>foreach($this-&gt;registry-&gt;stockistCountries as $value)
{
    if($value['country'] == 'UK'){
        $buffer .= '&lt;option&gt;UK&lt;/option&gt;';
        $buffer .= '&lt;option disabled&gt;------------------&lt;/option&gt;';
    }

}
</code></pre>

<p>I was wondering, if UK is found, is there a way to remove it from the array $this->registry->stockistCountries?</p>

<p>Thanks</p>
