public function buildAttrs(array $attrs = array())
    {
        $result = ' ';
        foreach ($attrs as $key => $param) {
            $param = (array) $param;
            if ($key === 'data') {
                $result .= $this->_buildDataAttrs($param);
                continue;
            }

            $value = implode(' ', $param);
            $value = $this->_cleanValue($value);

            if ($key !== 'data' && $attr = $this->_buildAttr($key, $value)) {
                $result .= $attr;
            }
        }

        return trim($result);
    }
public function buildAttrs(array $attrs = array())
    {
        $result = ' ';
        foreach ($attrs as $key => $param) {
            $param = (array) $param;
            if ($key === 'data') {
                $result .= $this->_buildDataAttrs($param);
                continue;
            }

            $value = implode(' ', $param);
            $value = $this->_cleanValue($value);

            if ($key !== 'data' && $attr = $this->_buildAttr($key, $value)) {
                $result .= $attr;
            }
        }

        return trim($result);
    }
public function buildAttrs ( array $ attrs = array ( ) ) { $ result = ' ' ; foreach ( $ attrs as $ key => $ param ) { $ param = ( array ) $ param ; if ( $ key === 'data' ) { $ result .= $ this -> _buildDataAttrs ( $ param ) ; continue ; } $ value = implode ( ' ' , $ param ) ; $ value = $ this -> _cleanValue ( $ value ) ; if ( $ key !== 'data' && $ attr = $ this -> _buildAttr ( $ key , $ value ) ) { $ result .= $ attr ; } } return trim ( $ result ) ; }
Build attributes.

@param $attrs
@return string
Build attributes .