private function formatHtmlAttribute($attributes = [])
    {
        $attrArr = [];
        foreach ($attributes as $name => $val) {
            $attrArr[] = "$name=\"$val\"";
        }

        return implode(' ', $attrArr);
    }
private function formatHtmlAttribute($attributes = [])
    {
        $attrArr = [];
        foreach ($attributes as $name => $val) {
            $attrArr[] = "$name=\"$val\"";
        }

        return implode(' ', $attrArr);
    }
private function formatHtmlAttribute ( $ attributes = [ ] ) { $ attrArr = [ ] ; foreach ( $ attributes as $ name => $ val ) { $ attrArr [ ] = "$name=\"$val\"" ; } return implode ( ' ' , $ attrArr ) ; }
Format attributes to html.

@param array $attributes

@return string
Format attributes to html .