Filters the result when generating a unique file name.
Parameters
$filename
string- Unique file name.
$ext
string- File extension. Example: ".png".
$dir
string- Directory path.
$unique_filename_callback
callable|null- Callback function that generates the unique file name.
$alt_filenames
string[]- Array of alternate file names that were checked for collisions.
$number
int|string- The highest number that was used to make the file name unique or an empty string if unused.
Source
* @param string $dir Directory path.
User Contributed Notes
You must log in before being able to contribute a note or feedback.