finfo_open()
function finfo_open(int $flags = 0, ?string $magic_database = null): finfo|false
Creates a finfo instance using the embedded or a custom magic database.
Parameters:
$flags(int), default0, optional$magic_database(?string), defaultnull, optional
Returns: finfo|false
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how finfo_open is implemented in the compiler, see the internals page.