F::safeExtension() Sanitize a file's extension Since 4.0.0 kirby/src/Filesystem/F.php#L775 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