public function getOptions()
    {
        $options = [];
        foreach ($this->childNodes as $child) {
            if ($child instanceof Select\Option) {
                $options[] = $child;
            } else if ($child instanceof Select\Optgroup) {
                foreach ($child->getChildren() as $c) {
                    if ($c instanceof Select\Option) {
                        $options[] = $c;
                    }
                }
            }
        }
        return $options;
    }
public function getOptions()
    {
        $options = [];
        foreach ($this->childNodes as $child) {
            if ($child instanceof Select\Option) {
                $options[] = $child;
            } else if ($child instanceof Select\Optgroup) {
                foreach ($child->getChildren() as $c) {
                    if ($c instanceof Select\Option) {
                        $options[] = $c;
                    }
                }
            }
        }
        return $options;
    }
public function getOptions ( ) { $ options = [ ] ; foreach ( $ this -> childNodes as $ child ) { if ( $ child instanceof Select \ Option ) { $ options [ ] = $ child ; } else if ( $ child instanceof Select \ Optgroup ) { foreach ( $ child -> getChildren ( ) as $ c ) { if ( $ c instanceof Select \ Option ) { $ options [ ] = $ c ; } } } } return $ options ; }
Get select options

@return array
Get select options