<?php finfo_open(int $flags = FILEINFO_NONE, ?string $magic_database = null): finfo|false
<?php public function mimeType($path) { return finfo_file(finfo_open(FILEINFO_MIME_TYPE), $path); }