protected function attributes($attributes = [])
    {
        $ar = [];

        foreach ($attributes as $key => $value) {
            $element = $this->attribute($key, $value);
            if (!is_null($element)) {
                $ar[] = $element;
            }
        }

        return count($ar) > 0 ? ' '.implode(' ', $ar) : '';
    }
protected function attributes($attributes = [])
    {
        $ar = [];

        foreach ($attributes as $key => $value) {
            $element = $this->attribute($key, $value);
            if (!is_null($element)) {
                $ar[] = $element;
            }
        }

        return count($ar) > 0 ? ' '.implode(' ', $ar) : '';
    }
protected function attributes ( $ attributes = [ ] ) { $ ar = [ ] ; foreach ( $ attributes as $ key => $ value ) { $ element = $ this -> attribute ( $ key , $ value ) ; if ( ! is_null ( $ element ) ) { $ ar [ ] = $ element ; } } return count ( $ ar ) > 0 ? ' ' . implode ( ' ' , $ ar ) : '' ; }
Cycles through given attributes and sets them for the element.

@param array $attributes - The elements given options (attributes)

@return string
Cycles through given attributes and sets them for the element .