public setContentType (mixed $contentType, [mixed $charset])
Sets the response content-type mime, optionally the charset
1 2 | $response ->setContentType( 'application/pdf' ); $response ->setContentType( 'text/plain' , 'UTF-8' ); |
public setContentType (mixed $contentType, [mixed $charset])
Sets the response content-type mime, optionally the charset
1 2 | $response ->setContentType( 'application/pdf' ); $response ->setContentType( 'text/plain' , 'UTF-8' ); |
Designed by : w10schools
service@w10schools.com
Please login to continue.