Webpatser\Countries\Countries::getListForSelect PHP Method

getListForSelect() public method

Returns a list of countries suitable to use with a select element in Laravelcollective\html Will show the value and sort by the column specified in the display attribute
public getListForSelect ( $display = 'name' ) : array
return array
    public function getListForSelect($display = 'name')
    {
        foreach ($this->getList($display) as $key => $value) {
            $countries[$key] = $value[$display];
        }
        //return the array
        return $countries;
    }