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