我在一系列国家中搜索以查看是否与英国匹配,如果是,我将其拉出并将其放在下拉列表的顶部。
foreach($this->registry->stockistCountries as $value)
{
    if($value['country'] == 'UK'){
        $buffer .= '<option>UK</option>';
        $buffer .= '<option disabled>------------------</option>';
    }
}
我想知道,如果找到 UK,有没有办法从数组 $this->registry->stockistCountries 中删除它?
谢谢