Method: f::safe_name

Sanitize a filename to strip unwanted special characters

Info

Syntax

f::safe_name($string)

Parameters

Return (string)

Example


$safe = f::safe_name('über genious.txt');
// safe will be ueber-genious.txt