protected function _buildAttribute($attr)
    {
        $string = array();

        foreach ($attr as $key => $value) {
            if (is_array($value)) {
                $value = implode(' ', $value);
            }

            $string[] = $key.'="'.$value.'"';
        }

        return implode(' ', $string);
    }
protected function _buildAttribute($attr)
    {
        $string = array();

        foreach ($attr as $key => $value) {
            if (is_array($value)) {
                $value = implode(' ', $value);
            }

            $string[] = $key.'="'.$value.'"';
        }

        return implode(' ', $string);
    }
protected function _buildAttribute ( $ attr ) { $ string = array ( ) ; foreach ( $ attr as $ key => $ value ) { if ( is_array ( $ value ) ) { $ value = implode ( ' ' , $ value ) ; } $ string [ ] = $ key . '="' . $ value . '"' ; } return implode ( ' ' , $ string ) ; }
Build html attribute.

@return string
Build html attribute .