Skip to content

Kirby 4.4.1

F::safeExtension()

Sanitize a file's extension

F::safeExtension(string $string, bool $extract = true): string

Parameters

Name Type Default
$string * string
$extract bool true

Return type

string

Parent class

Kirby\Filesystem\F