richiedo, $aaaa che cos'è? un array con cosa?

mettiamo che $aaa si un array option_value => option_text, che useremo per creare le notre options:

Codice PHP:
class Select{

    public function 
create($options = array(),$htmlArray=array()){
        
$toHtml = array();
        
$toHtml[] =  '<select '.$this->_htmlProperties($htmlArray).'>';
        
        
$toHtml[] = $this->_renderOptions($options);
        
$toHtml[] = '</select>';
    
        return 
join("\n",$toHtml);
    }
    
    private function 
_renderOptions($options = array()){
        
$toHtml = array();
        foreach(
$options as $value => $label)
            
$toHtml[] = "<option value=\"$value\">$label</option>";

        return 
join("\n",$toHtml);
    }

    private function 
_htmlProperties($properties=array()){
        
$toHtml = array();
        foreach(
$properties as $name => $value)
            
$toHtml[] = "$name=\"$value\"";

        return 
join(" ",$toHtml);
    }
    
}


$aaa = array('pippo' => 'valore è pippo''pluto' => 'valore è pluto''caio' => 'valore è caio');

$select = new Select();

echo 
$select->create($aaa,array('name'=>'selectProva','id'=>'selectProvaId')); 
salvo qualche errore (non l'ho testata) dovrebbe andare