DateTime objects will be converted to a string representation internally but
will be returned as DateTime objects on calling get().
Please note that dates are normalized to GMT internally, so that get() will return
the same point in time, but not necessarily in the same timezone, if it was not
GMT previously. GMT is used synonymously with UTC as per RFC 2616 3.3.1.
public set ( string $name, array | string | DateTime $values, boolean $replaceExistingHeader = true ) : void | ||
$name | string | Name of the header, for example "Location", "Content-Description" etc. |
$values | array | string | DateTime | An array of values or a single value for the specified header field |
$replaceExistingHeader | boolean | If a header with the same name should be replaced. Default is TRUE. |
Résultat | void |