F::is()
Checks if a file is of a certain type
F::is(string $file, string $value): bool
Parameters
Name | Type | Default | Description |
---|---|---|---|
$filerequired | string |
no default value | Full path to the file |
$valuerequired | string |
no default value | An extension or mime type |
Return type
bool