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);
    }
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);
    }
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 ) ; }
Get a string of attributes given the attributes as an array
@param array $attribs
@param $leading_space
@return string
Get a string of attributes given the attributes as an array