F::safeName PHP Method

safeName() public static method

$safe = f::safeName('über genious.txt'); safe will be ueber-genious.txt
public static safeName ( string $string ) : string
$string string The file name
return string
    public static function safeName($string)
    {
        $name = static::name($string);
        $extension = static::extension($string);
        $end = !empty($extension) ? '.' . str::slug($extension) : '';
        return str::slug($name, '-', 'a-z0-9@._-') . $end;
    }