Construct a new header object
string $header Name of the header:
array $values Values of the header:
string $glue Glue used to combine multiple values into a string:
public function __construct($header, $values = array(), $glue = ', ') {
$this->header = $header;
$this->glue = $glue;
if (null !== $values) {
foreach ((array) $values as $key => $value) {
if (is_numeric($key)) {
$key = $header;
}
if ($value === null) {
$this
->add($value, $key);
}
else {
foreach ((array) $value as $v) {
$this
->add($v, $key);
}
}
}
}
}