```php
<?php
$info = new finfo(FILEINFO_MIME_TYPE);
echo $info->file('/path/to/image.png');
?>
```

```
image/png
```