Skip to main content

Name

ec_header_get — obtain the values for a particular header

Synopsis

ec_header_get { field-name }

Description

This will find all headers with the matching field-name and return a string list of their bodies.

$category_headers = ec_header_get "X-Category";
$first_header = $category_headers[0];
ec_log "The category is ${first_header}";

($hdr) = ec_header_get "X-Category";
ec_log "The category is ${hdr}";

Note

The parameter passed to this function is case insensitive.

Was this page helpful?