Man Page: httpresponse.setcontenttype
Operating Environment: php
Section: 3
HTTPRESPONSE.SETCONTENTTYPE(3) 1 HTTPRESPONSE.SETCONTENTTYPE(3) HttpResponse::setContentType - Set content typeSYNOPSISstatic bool HttpResponse::setContentType (string $content_type)DESCRIPTIONSet the Content-Type of the sent entity.PARAMETERSo $content_type - the content type of the sent entity (primary/secondary)RETURN VALUESReturns TRUE on success, or FALSE if the content type does not seem to contain a primary and secondary content type part.SEE ALSOHttpResponse::getContentDisposition, HttpResponse::setContentDisposition, HttpResponse::getContentType, HttpResponse::guessContentType. PHP Documentation Group HTTPRESPONSE.SETCONTENTTYPE(3)