hasHTTPHeader() (tick_24Validator Engine Only)

int hasHTTPHeader(string $fieldname)

Returns 1 if an HTTP header with the name $fieldname exists, else returns 0

The header field name is case-insensitive.

This function is faster than using getHTTPHeaderValue() to determine if an HTTP header has been used.

This function is supported only in CSE HTML Validator v16.02 and later.

See also: getHTTPHeaderValue()


For related examples, see getHTTPHeaderValue().