public function getOptionsAsArray()
    {
        $options      = $this->getOptions();
        $optionsArray = [];
        foreach ($options as $option) {
            $optionsArray[$option->getValue()] = $option->getNodeValue();
        }
        return $optionsArray;
    }
public function getOptionsAsArray()
    {
        $options      = $this->getOptions();
        $optionsArray = [];
        foreach ($options as $option) {
            $optionsArray[$option->getValue()] = $option->getNodeValue();
        }
        return $optionsArray;
    }
public function getOptionsAsArray ( ) { $ options = $ this -> getOptions ( ) ; $ optionsArray = [ ] ; foreach ( $ options as $ option ) { $ optionsArray [ $ option -> getValue ( ) ] = $ option -> getNodeValue ( ) ; } return $ optionsArray ; }
Get select options as array

@return array
Get select options as array