sanitize_filename()

public function sanitize_filename(array $data): string

The sanitize_filename() method is supported by a dedicated helper function. For guidance on how to use it, click here.