2016-08-03 34 views
1

我用下面的形式:如何填表::选择更漂亮?

<?=Form::select('stars', array(
          1 => 1, 
          2 => 2, 
          3 => 3, 
          4 => 4, 
          5 => 5 
         ), null, ["placeholder" => "Stars", "class" => "w-select"]);?> 

它看起来可怕。如何在Form::select中对阵列进行重组,键将从1到5?

回答