public function attr(array $attributes)
    {
        $result = '';

        foreach ($attributes as $attribute => $value) {
            $result .= ' '.(is_int($attribute) ? $value : $attribute.'="'.str_replace('"', '&quot;', $value).'"');
        }

        return $result;
    }
public function attr(array $attributes)
    {
        $result = '';

        foreach ($attributes as $attribute => $value) {
            $result .= ' '.(is_int($attribute) ? $value : $attribute.'="'.str_replace('"', '&quot;', $value).'"');
        }

        return $result;
    }
public function attr ( array $ attributes ) { $ result = '' ; foreach ( $ attributes as $ attribute => $ value ) { $ result .= ' ' . ( is_int ( $ attribute ) ? $ value : $ attribute . '="' . str_replace ( '"' , '&quot;' , $ value ) . '"' ) ; } return $ result ; }
Render the attributes

@param  array  $attributes
@return string
Render the attributes