HTTPRESPONSE.SETCONTENTTYPE(3) 1 HTTPRESPONSE.SETCONTENTTYPE(3)
HttpResponse::setContentType - Set content type
SYNOPSIS
static bool HttpResponse::setContentType (string $content_type)
DESCRIPTION
Set the Content-Type of the sent entity.
PARAMETERS
o $content_type
- the content type of the sent entity (primary/secondary)
RETURN VALUES
Returns TRUE on success, or FALSE if the content type does not seem to contain a primary and secondary content type part.
SEE ALSO
HttpResponse::getContentDisposition, HttpResponse::setContentDisposition, HttpResponse::getContentType, HttpResponse::guessContentType.
PHP Documentation Group HTTPRESPONSE.SETCONTENTTYPE(3)