original_string: public static function attribs($attribs, $leading_space = true)
      {
          if (!Arr::iterable($attribs)) {
              return '';
          }
          
          $out = array();
          foreach ($attribs as $k => $v) {
              $v = (is_array($v)) ? join(' ', $v) : $v;
              $out[] = $k . '="' . str_replace('"', '\"', $v) . '"';
          }
          return (($leading_space) ? ' ' : '') . join(' ', $out);
      }
code: public static function attribs($attribs, $leading_space = true)
      {
          if (!Arr::iterable($attribs)) {
              return '';
          }
          
          $out = array();
          foreach ($attribs as $k => $v) {
              $v = (is_array($v)) ? join(' ', $v) : $v;
              $out[] = $k . '="' . str_replace('"', '\"', $v) . '"';
          }
          return (($leading_space) ? ' ' : '') . join(' ', $out);
      }
code_tokens: public static function attribs ( $ attribs , $ leading_space = true ) { if ( ! Arr :: iterable ( $ attribs ) ) { return '' ; } $ out = array ( ) ; foreach ( $ attribs as $ k => $ v ) { $ v = ( is_array ( $ v ) ) ? join ( ' ' , $ v ) : $ v ; $ out [ ] = $ k . '="' . str_replace ( '"' , '\"' , $ v ) . '"' ; } return ( ( $ leading_space ) ? ' ' : '' ) . join ( ' ' , $ out ) ; }
docstring: Get a string of attributes given the attributes as an array
  @param array $attribs
  @param $leading_space
  @return string
docstring_tokens: Get a string of attributes given the attributes as an array