filename()
filename( $file, $safe = true)
URL-Encode a filename/URL to allow unicodecharacters
Slashes are not encoded
When the second parameter is true the string will be encoded only if non ASCII characters are detected - This makes it safe to run it multiple times on the same string (default is true)
Parameters
$file | ||
$safe |