Skip to content

Kirby 5.0.4

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

Parent class

Kirby\Filesystem\F