original_string: public static function selecty($options, $selected = null, $attribs = array())
      {
          $htmls = array();
          $htmls[] = self::select(null, $attribs, false);
          if (Arr::iterable($options)) {
              foreach ($options as $value => $title) {
                  $option_attribs = array('value'=>$value);
                  if ((string) $selected === (string) $value) {
                      $option_attribs['selected'] = 'selected';
                  }
                  
                  $htmls[] = self::option($title, $option_attribs);
              }
          }
          $htmls[] = '</select>';
          return join("\n", $htmls);
      }
code: public static function selecty($options, $selected = null, $attribs = array())
      {
          $htmls = array();
          $htmls[] = self::select(null, $attribs, false);
          if (Arr::iterable($options)) {
              foreach ($options as $value => $title) {
                  $option_attribs = array('value'=>$value);
                  if ((string) $selected === (string) $value) {
                      $option_attribs['selected'] = 'selected';
                  }
                  
                  $htmls[] = self::option($title, $option_attribs);
              }
          }
          $htmls[] = '</select>';
          return join("\n", $htmls);
      }
code_tokens: public static function selecty ( $ options , $ selected = null , $ attribs = array ( ) ) { $ htmls = array ( ) ; $ htmls [ ] = self :: select ( null , $ attribs , false ) ; if ( Arr :: iterable ( $ options ) ) { foreach ( $ options as $ value => $ title ) { $ option_attribs = array ( 'value' => $ value ) ; if ( ( string ) $ selected === ( string ) $ value ) { $ option_attribs [ 'selected' ] = 'selected' ; } $ htmls [ ] = self :: option ( $ title , $ option_attribs ) ; } } $ htmls [ ] = '</select>' ; return join ( "\n" , $ htmls ) ; }
docstring: Get a select list
  @param array $options
  @param string $selected
  @param array $attribs
  @return string
docstring_tokens: Get a select list