src/Library/Helper/Html.php
public static function parseAttributes(array $attrs = array())
    {
        $str = '';
        foreach($attrs as $var=>$val) {
            $str .= ' '.$var.'="'.(is_array($val) ? join(' ', $val) : $val).'"';
        }
        return $str;
    }
public static function parseAttributes(array $attrs = array())
    {
        $str = '';
        foreach($attrs as $var=>$val) {
            $str .= ' '.$var.'="'.(is_array($val) ? join(' ', $val) : $val).'"';
        }
        return $str;
    }
public static function parseAttributes ( array $ attrs = array ( ) ) { $ str = '' ; foreach ( $ attrs as $ var => $ val ) { $ str .= ' ' . $ var . '="' . ( is_array ( $ val ) ? join ( ' ' , $ val ) : $ val ) . '"' ; } return $ str ; }
Build an attributes HTML string from an array like `variable => value` pairs

@param   array   $attrs The attributes array
@return  string  The attributes string ready for HTML insertion
Build an attributes HTML string from an array like variable = > value pairs