Skip to content

Instantly share code, notes, and snippets.

@yuheiy
Created October 24, 2015 12:49
Show Gist options
  • Save yuheiy/b4590b0d0037ef1d7fd8 to your computer and use it in GitHub Desktop.
Save yuheiy/b4590b0d0037ef1d7fd8 to your computer and use it in GitHub Desktop.
<?php
$finfo = new finfo(FILEINFO_MIME_TYPE);
$finfo->file($filepath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment