In previous post, I have explained about email send using php email header content type and Mime types.
Actually PHP’s header() is used to send a raw HTTP header. header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. By using Header, you can tell the browser that you’re outputting a different content type in spite of current file extension ends in PHP. Here in this post I have collected a list of popular Header’s content types that’s surely works for you.
List of popular Header’s content types
Text (Print Plain text)
XML (Print as XML)
CSS (Sets content type as CSS)
Atom (Sets as Atom)
JPEG Image (Content as JPEG Image)
JSON (Set type as JSON)
PDF (Sets content type as PDF)
RSS (Content type as RSS)