public function getAttributesString(array $attributes = array())
    {
        $attributesString = '';

        foreach ($attributes as $name => $values) {
            $value = is_array($values) ? implode(' ', $values) : $values;
            $attributesString .= ' '.$name.'="'.$value.'"';
        }

        return $attributesString;
    }
public function getAttributesString(array $attributes = array())
    {
        $attributesString = '';

        foreach ($attributes as $name => $values) {
            $value = is_array($values) ? implode(' ', $values) : $values;
            $attributesString .= ' '.$name.'="'.$value.'"';
        }

        return $attributesString;
    }
public function getAttributesString ( array $ attributes = array ( ) ) { $ attributesString = '' ; foreach ( $ attributes as $ name => $ values ) { $ value = is_array ( $ values ) ? implode ( ' ' , $ values ) : $ values ; $ attributesString .= ' ' . $ name . '="' . $ value . '"' ; } return $ attributesString ; }
Returns an string for the given attributes ready to be places in an html element

@param array $attributes

@return string
Returns an string for the given attributes ready to be places in an html element