Skip to content

Kirby 4.5.0

F::safeBasename()

Sanitize a file's name (without extension)

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

Parameters

Name Type Default
$string * string
$extract bool true

Return type

string

Parent class

Kirby\Filesystem\F