roundcubemail/program/lib/Roundcube/html.php
public function add($names, $values = null, $attrib = array())
    {
        if (is_array($names)) {
            foreach ($names as $i => $text) {
                $this->options[] = array('text' => $text, 'value' => $values[$i]) + $attrib;
            }
        }
        else {
            $this->options[] = array('text' => $names, 'value' => $values) + $attrib;
        }
    }
public function add($names, $values = null, $attrib = array())
    {
        if (is_array($names)) {
            foreach ($names as $i => $text) {
                $this->options[] = array('text' => $text, 'value' => $values[$i]) + $attrib;
            }
        }
        else {
            $this->options[] = array('text' => $names, 'value' => $values) + $attrib;
        }
    }
public function add ( $ names , $ values = null , $ attrib = array ( ) ) { if ( is_array ( $ names ) ) { foreach ( $ names as $ i => $ text ) { $ this -> options [ ] = array ( 'text' => $ text , 'value' => $ values [ $ i ] ) + $ attrib ; } } else { $ this -> options [ ] = array ( 'text' => $ names , 'value' => $ values ) + $ attrib ; } }
Add a new option to this drop-down

@param mixed $names  Option name or array with option names
@param mixed $values Option value or array with option values
@param array $attrib Additional attributes for the option entry
Add a new option to this drop - down