Mime Types for Microsoft Word 2007 (doc & docx), PDF and Zip Files

Recently i have come across a php function to check mime types for uploading files (MS word doc, PDF and zip) , so i think just share the tips here and hope it will solve someone problem in finding this. Cheers!

.doc

application/msword

.docx

application/vnd.openxmlformats-officedocument.wordprocessingml.document

.pdf

application/pdf

.zip

application/x-compressed
application/x-zip-compressed
application/zip
multipart/x-zip